From: Nick Clifton Date: Fri, 16 Feb 2001 22:04:22 +0000 (+0000) Subject: Remove Prefetch abort for breakpoints. Instead set the state to RESUME. X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=1a2c9bb7cbe2eeef1bca1668e638655947496e6f;p=pf3gnuchains%2Fpf3gnuchains3x.git Remove Prefetch abort for breakpoints. Instead set the state to RESUME. --- diff --git a/sim/arm/ChangeLog b/sim/arm/ChangeLog index 4b1331a766..7ed494d19a 100644 --- a/sim/arm/ChangeLog +++ b/sim/arm/ChangeLog @@ -1,3 +1,8 @@ +2001-02-16 Nick Clifton + + * armemu.c: Remove Prefetch abort for breakpoints. Instead set + the state to RESUME. + 2001-02-14 Nick Clifton * armemu.c: Add code to preserve processor mode when a prefetch diff --git a/sim/arm/armemu.c b/sim/arm/armemu.c index f0a6103357..6b963c72c6 100644 --- a/sim/arm/armemu.c +++ b/sim/arm/armemu.c @@ -1340,7 +1340,6 @@ ARMul_Emulate26 (register ARMul_State * state) { 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 @@ -1378,17 +1377,8 @@ ARMul_Emulate26 (register ARMul_State * state) } } - /* 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); - + /* Force the next instruction to be refetched. */ + state->NextInstr = RESUME; break; } }