mirror of
https://github.com/open-simh/simh.git
synced 2026-05-01 22:16:21 +00:00
ALL: make sure all useful state is in simh registers while processing events
This commit is contained in:
@@ -339,6 +339,12 @@ reason = 0;
|
||||
while (reason == 0) { /* loop until halted */
|
||||
|
||||
if (sim_interval <= 0) { /* check clock queue */
|
||||
/* Make sure all intermediate state is visible in simh registers */
|
||||
saved_PC = IF | (PC & 07777); /* save copies */
|
||||
saved_DF = DF & 070000;
|
||||
saved_LAC = LAC & 017777;
|
||||
saved_MQ = MQ & 07777;
|
||||
pcq_r->qptr = pcq_p; /* update pc q ptr */
|
||||
if ((reason = sim_process_event ()))
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user