forked from Imagelibrary/binutils-gdb
Add special case handling when GDB set CPSR register
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2000-05-23 Nick Clifton <nickc@cygnus.com>
|
||||||
|
|
||||||
|
* wrapper.c (sim_store_register): Special handling for CPSR
|
||||||
|
register.
|
||||||
|
|
||||||
2000-03-11 Philip Blundell <philb@gnu.org>
|
2000-03-11 Philip Blundell <philb@gnu.org>
|
||||||
|
|
||||||
* armemu.c (LoadSMult, LoadMult): Correct handling of aborts.
|
* armemu.c (LoadSMult, LoadMult): Correct handling of aborts.
|
||||||
|
|||||||
@@ -320,7 +320,13 @@ sim_store_register (sd, rn, memory, length)
|
|||||||
int length ATTRIBUTE_UNUSED;
|
int length ATTRIBUTE_UNUSED;
|
||||||
{
|
{
|
||||||
init ();
|
init ();
|
||||||
ARMul_SetReg (state, state->Mode, rn, frommem (state, memory));
|
if (rn == 25)
|
||||||
|
{
|
||||||
|
state->Cpsr = frommem (state, memory);
|
||||||
|
ARMul_CPSRAltered (state);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
ARMul_SetReg (state, state->Mode, rn, frommem (state, memory));
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user