1
0
mirror of https://github.com/open-simh/simh.git synced 2026-04-28 21:07:43 +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

@@ -393,6 +393,11 @@ while (reason == 0) {
}
if (sim_interval <= 0) { /* chk clock queue */
/* make sure all useful state is in simh registers while processing events */
pcc_l = pcc_l & M32;
pcq_r->qptr = pcq_p; /* update pc q ptr */
pc_align = ((uint32) PC) & 3; /* separate PC<1:0> */
PC = PC & 0xFFFFFFFFFFFFFFFC;
if ((reason = sim_process_event ())) break;
intr_summ = pal_eval_intr (1); /* eval interrupts */
}