Add special case handling when GDB set CPSR register

This commit is contained in:
Nick Clifton 2000-05-23 23:52:46 +00:00
parent b2450fc5b6
commit 3463c3fbbb
2 changed files with 12 additions and 1 deletions

View file

@ -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.

View file

@ -320,6 +320,12 @@ sim_store_register (sd, rn, memory, length)
int length ATTRIBUTE_UNUSED;
{
init ();
if (rn == 25)
{
state->Cpsr = frommem (state, memory);
ARMul_CPSRAltered (state);
}
else
ARMul_SetReg (state, state->Mode, rn, frommem (state, memory));
return -1;
}