1
0
mirror of https://github.com/simh/simh.git synced 2026-04-30 05:25:05 +00:00

PDP11 and All VAXen: Support dynamic fetching of ROM or other boot code

Simulators built with DONT_USE_INTERNAL_ROM defined will not have hte
binary of the needed ROM or boot components build into the simulator
binaries.  However, they will automatically and transparently fetch the
neeeded ROM or boot code from the web when these binary files aren't
available locally.
This commit is contained in:
Mark Pizzolato
2022-10-19 15:06:55 -10:00
parent 10357a4ce3
commit 0de0359ad0
21 changed files with 34 additions and 113 deletions

View File

@@ -3920,15 +3920,14 @@ else {
return SCPE_OK;
}
t_stat cpu_load_bootcode (const char *filename, const unsigned char *builtin_code, size_t size, t_bool rom, t_addr offset)
t_stat cpu_load_bootcode (const char *filename, const unsigned char *builtin_code, size_t size, t_bool rom, t_addr offset, const char *filepath, unsigned int checksum)
{
char args[CBUFSIZE];
t_stat r;
int32 saved_sim_switches = sim_switches;
sim_messagef (SCPE_OK, "Loading boot code from %s%s\n", builtin_code ? "internal " : "", filename);
if (builtin_code)
sim_set_memory_load_file (builtin_code, size);
sim_set_memory_load_file_ex (builtin_code, size, filepath, checksum);
if (rom)
sprintf (args, "-R %s", filename);
else