Add support for v4 SystemMode.
[deliverable/binutils-gdb.git] / sim / arm / armemu.c
index d890cda25946fd7d6432bd8d8a1c5f5706b3098e..acbcb752959c83e55b94696b240772312c68ba42 100644 (file)
@@ -2864,6 +2864,9 @@ ARMul_Emulate26 (register ARMul_State * state)
 
       if (state->Emulate == ONCE)
        state->Emulate = STOP;
+      /* If we have changed mode, allow the PC to advance before stopping.  */
+      else if (state->Emulate == CHANGEMODE)
+       continue;
       else if (state->Emulate != RUN)
        break;
     }
@@ -2872,7 +2875,8 @@ ARMul_Emulate26 (register ARMul_State * state)
   state->decoded = decoded;
   state->loaded = loaded;
   state->pc = pc;
-  return (pc);
+
+  return pc;
 }                              /* Emulate 26/32 in instruction based mode */
 
 
This page took 0.023544 seconds and 4 git commands to generate.