Add special case handling when GDB set CPSR register
This commit is contained in:
parent
b2450fc5b6
commit
3463c3fbbb
2 changed files with 12 additions and 1 deletions
|
@ -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>
|
||||
|
||||
* armemu.c (LoadSMult, LoadMult): Correct handling of aborts.
|
||||
|
|
|
@ -320,7 +320,13 @@ sim_store_register (sd, rn, memory, length)
|
|||
int length ATTRIBUTE_UNUSED;
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue