int32 con_halt (int32 code, int32 cc) { if ((vax610_boot_parse (0, cpu_boot_cmd) != SCPE_OK) || /* reparse the boot cmd */ (reset_all (0) != SCPE_OK) || /* reset the world */ (cpu_boot (0, NULL) != SCPE_OK)) /* set up boot code */ ABORT (STOP_BOOT); /* any error? */ sim_printf ("Rebooting...\n"); return cc; }
t_stat vax610_boot (int32 flag, char *ptr) { t_stat r; r = vax610_boot_parse (flag, ptr); /* parse the boot cmd */ if (r != SCPE_OK) /* error? */ return r; strncpy (cpu_boot_cmd, ptr, CBUFSIZE); /* save for reboot */ return run_cmd (flag, "CPU"); }
t_stat vax610_boot (int32 flag, char *ptr) { t_stat r; r = vax610_boot_parse (flag, ptr); /* parse the boot cmd */ if (r != SCPE_OK) { /* error? */ if (r >= SCPE_BASE) { /* message available? */ sim_printf ("%s\n", sim_error_text (r)); r |= SCPE_NOMESSAGE; } return r; } strncpy (cpu_boot_cmd, ptr, CBUFSIZE); /* save for reboot */ return run_cmd (flag, "CPU"); }