Skip to content

Commit

Permalink
VAX: Set CPU model correctly on each boot
Browse files Browse the repository at this point in the history
Previously the CPU model was only being set when the CPU ROM was
implicitly loaded from the internal ROM image at boot time.  Other
loading of ROM code never set the configured model correctly.
  • Loading branch information
markpizz committed Aug 2, 2018
1 parent e4191c3 commit dc13df7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion VAX/vax_sysdev.c
Expand Up @@ -1727,8 +1727,8 @@ if (*rom == 0) { /* no boot? */
r = cpu_load_bootcode (BOOT_CODE_FILENAME, BOOT_CODE_ARRAY, BOOT_CODE_SIZE, TRUE, 0);
if (r != SCPE_OK)
return r;
rom_wr_B (ROMBASE+4, sys_model ? 1 : 2); /* Set Magic Byte to determine system type */
}
rom_wr_B (ROMBASE+4, sys_model ? 1 : 2); /* Set Magic Byte to determine system type */
sysd_powerup ();
return SCPE_OK;
}
Expand Down

0 comments on commit dc13df7

Please sign in to comment.