freebsd-ports/emulators/simh/files/patch-VAX_vax__sysdev.c
Matthew Seaman 7c084f620e Fixes to allow building on 12-CURRENT
- fix build failures in i386 and amd64 due to compiler changes
- fix numerous compilation warnings and logical errors that may trap
  in the future
- convert all distribution files from DOS format to ease future changes
- convert legacy patch file to new naming convention

PR:		214990
Submitted by:	bob@eager.cx (maintainer)
2017-01-03 14:00:47 +00:00

20 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;