1
0
mirror of https://github.com/simh/simh.git synced 2026-04-28 20:57:26 +00:00

ALL: make sure all useful state is in simh registers while processing events

This commit is contained in:
Mark Pizzolato
2015-01-15 12:37:07 -08:00
parent 0d41242520
commit 5551a0dd9c
19 changed files with 63 additions and 0 deletions

View File

@@ -550,6 +550,12 @@ while (reason == 0) { /* loop until halted */
saved_IS = IS; /* commit prev instr */
if (sim_interval <= 0) { /* check clock queue */
/* make sure all useful state is in simh registers while processing events */
as_err = ADDR_ERR (AS); /* get addr err flags */
bs_err = ADDR_ERR (BS);
AS = AS & ADDRMASK; /* clean addresses */
BS = BS & ADDRMASK;
pcq_r->qptr = pcq_p; /* update pc q ptr */
if ((reason = sim_process_event ()))
break;
}