2001-02-14 Nick Clifton <nickc@redhat.com>
+ * armemu.c: Add code to preserve processor mode when a prefetch
+ abort is signalled after processing a breakpoint.
+
* wrapper.c (sim_create_inferior): Reset processor into ARM mode
for any machine type except the early ARMs.
{
ARMword value;
extern int SWI_vector_installed;
+ int in_thumb_mode;
/* Hardware is allowed to optionally override this
instruction and treat it as a breakpoint. Since
}
}
+ /* We must signal an abort to mark the next instruction as
+ invalid and in need of refetching. This is because if this
+ the instruction was a breakpoint inserted by the debugger,
+ the instruction could be changed back to its original value.
+ The abort however, will automatically reset the processor into
+ ARM mode, so we have to preserve the mode flag and resort it
+ after singalling the abort. */
+ in_thumb_mode = TFLAG;
ARMul_Abort (state, ARMul_PrefetchAbortV);
+ ASSIGNT (in_thumb_mode);
+
break;
}
}