From 7ad2651aa846aabaf7913fad529516e53432a790 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Thu, 24 Sep 2015 11:14:04 -0700 Subject: [PATCH] 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). --- VAX/vax750_cmi.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/VAX/vax750_cmi.c b/VAX/vax750_cmi.c index 28f49cb6..25c0b556 100644 --- a/VAX/vax750_cmi.c +++ b/VAX/vax750_cmi.c @@ -732,7 +732,16 @@ if (gbuf[0]) { } } 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; R[0] = 0; R[1] = (NEXUSBASE + (TR_MBA0 * (1 << REG_V_NEXUS))); /* MBA Address */