1
0
mirror of https://github.com/simh/simh.git synced 2026-04-19 01:17:28 +00:00

All VAX: Fix idle/inifinite loop detection for instructions with side effects

Recent enhancements to idle/infinite loop detection generalized handling
of detecting 'loop to self' cases.  This was done without considering that
some instructions have side effects (i.e. change other state like the stack
pointer) and thus aren't merely loop to self cases.

This problem was reported in #315
This commit is contained in:
Mark Pizzolato
2016-05-18 09:02:22 -07:00
parent 0c2bc4c617
commit 253e9deea7
3 changed files with 6 additions and 5 deletions

View File

@@ -2279,7 +2279,7 @@ for ( ;; ) {
case RSB:
temp = Read (SP, L_LONG, RA); /* get top of stk */
SP = SP + 4; /* incr stk ptr */
JUMP (temp);
JUMP_ALWAYS (temp);
if (sim_switches & SWMASK ('R')) {
if (step_out_nest_level <= 0)
ABORT (SCPE_STEP);