mirror of
https://github.com/simh/simh.git
synced 2026-02-26 08:44:38 +00:00
VAX: Clarify running from ROM test when reading todr_rd
This change only simplifies reading the code. The functional results are unchanged
This commit is contained in:
@@ -470,7 +470,7 @@ int32 todr_rd (void)
|
||||
TOY *toy = (TOY *)clk_unit.filebuf;
|
||||
struct timespec base, now, val;
|
||||
|
||||
if ((fault_PC&0xFFFE0000) == 0x20040000) { /* running from ROM? */
|
||||
if (ADDR_IS_ROM(fault_PC)) { /* running from ROM? */
|
||||
sim_debug (DBG_REG, &clk_dev, "todr_rd(ROM) - TODR=0x%X\n", todr_reg);
|
||||
return todr_reg; /* return counted value for ROM diags */
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user