opnsense-ports/emulators/simh/files/patch-VAX_vax__sysdev.c
Franco Fichtner 91d6ac7b46 */*: sync with upstream
Taken from: FreeBSD
2017-01-04 07:25:40 +01:00

19 lines
690 B
C

--- VAX/vax_sysdev.c.orig 2016-12-01 22:43:43 UTC
+++ VAX/vax_sysdev.c
@@ -1556,8 +1556,14 @@ if (*rom == 0) {
if (sim_log)
fprintf (sim_log, "Loading boot code from ka655x.bin\n");
r = load_cmd (0, "-R ka655x.bin");
- if (r != SCPE_OK)
- return r;
+ if (r != SCPE_OK) {
+ printf ("Loading boot code from /usr/local/share/simh/ka655x.bin\n");
+ if (sim_log)
+ fprintf (sim_log, "Loading boot code from /usr/local/share/simh/ka655x.bin\n");
+ r = load_cmd (0, "-R /usr/local/share/simh/ka655x.bin");
+ if (r != SCPE_OK)
+ return r;
+ }
}
sysd_powerup ();
return SCPE_OK;