mirror of
https://github.com/open-simh/simh.git
synced 2026-04-30 13:41:55 +00:00
Made the VAX model visible with a SHOW CPU MODEL command for all simulators and made the model persist across a SAVE/RESTORE for the VAX simulators with a settable model
This commit is contained in:
@@ -64,6 +64,7 @@
|
||||
#define UNIT_NODELAY (1u << UNIT_V_NODELAY)
|
||||
|
||||
t_stat vax_boot (int32 flag, char *ptr);
|
||||
int32 sys_model = 0;
|
||||
|
||||
/* Special boot command, overrides regular boot */
|
||||
|
||||
@@ -1573,7 +1574,6 @@ return run_cmd (flag, "CPU");
|
||||
|
||||
t_stat cpu_boot (int32 unitno, DEVICE *dptr)
|
||||
{
|
||||
extern t_stat load_cmd (int32 flag, char *cptr);
|
||||
t_stat r;
|
||||
|
||||
PC = ROMBASE;
|
||||
@@ -1591,6 +1591,12 @@ sysd_powerup ();
|
||||
return SCPE_OK;
|
||||
}
|
||||
|
||||
t_stat cpu_show_model (FILE *st, UNIT *uptr, int32 val, void *desc)
|
||||
{
|
||||
fprintf (st, "model=VAX 3900");
|
||||
return SCPE_OK;
|
||||
}
|
||||
|
||||
/* SYSD reset */
|
||||
|
||||
t_stat sysd_reset (DEVICE *dptr)
|
||||
|
||||
Reference in New Issue
Block a user