mirror of
https://github.com/simh/simh.git
synced 2026-02-10 02:01:05 +00:00
Non Unibus and Non Qbus VAXen: Properly handle the boot ROM device support
- Previously the Option ROM device (OR) logic improperly used the UNIT UNIT_ATT flag to indicate a devices with Option ROM support. This bit has specific meaning to many SCP capabilities while there are numerous device specific fields in the UNIT structure which DEVICEs can use as needed. - Enhance SCP SHOW output for Option ROM units to indicate the DEVICE which each enabled ROM is related to. Fixes #1210
This commit is contained in:
@@ -98,7 +98,7 @@ int32 ka_rd (int32 pa);
|
||||
void ka_wr (int32 pa, int32 val, int32 lnt);
|
||||
int32 con_halt (int32 code, int32 cc);
|
||||
|
||||
extern t_stat or_map (uint32 index, uint8 *rom, t_addr size);
|
||||
extern t_stat or_map (DEVICE *dptr, uint32 index, uint8 *rom, t_addr size);
|
||||
extern t_stat or_unmap (uint32 index);
|
||||
extern void rom_wr_B (int32 pa, int32 val);
|
||||
extern int32 iccs_rd (void);
|
||||
@@ -874,7 +874,7 @@ for (i = 0; (cdptr = sim_devices[i]) != NULL; i++) { /* loop over all devices
|
||||
continue;
|
||||
|
||||
if (cdibp->rom_array != NULL) /* device has an option ROM? */
|
||||
or_map (cdibp->rom_index, cdibp->rom_array, cdibp->rom_size);
|
||||
or_map (cdptr, cdibp->rom_index, cdibp->rom_array, cdibp->rom_size);
|
||||
}
|
||||
return SCPE_OK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user