VAX750: Make sure that a boot ROM has been loaded before attempting a boot from the BOOTDEV specified boot device (i.e. BOOT without an argument).

This commit is contained in:
Mark Pizzolato 2015-09-24 11:14:04 -07:00
parent a6c5e7e632
commit 7ad2651aa8

View file

@ -732,7 +732,16 @@ if (gbuf[0]) {
} }
} }
else { else {
/* Page 2-16 of VAX750 Student Training suggests the following register state: */ if (!(*rom)) { /* ROM loaded? */
for (i=0; boot_tab[i].devname; i++) { /* Find a ROM file name */
if (boot_tab[i].bootcodefile)
break;
}
r = mctl_populate_rom (boot_tab[i].bootcodefile);
if (r != SCPE_OK)
return r;
}
/* Page 2-16 of VAX750 Student Training suggests the following register state: */
unitno = 0; unitno = 0;
R[0] = 0; R[0] = 0;
R[1] = (NEXUSBASE + (TR_MBA0 * (1 << REG_V_NEXUS))); /* MBA Address */ R[1] = (NEXUSBASE + (TR_MBA0 * (1 << REG_V_NEXUS))); /* MBA Address */