diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2000-07-04 06:19:29 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@redhat.com> | 2000-07-04 06:19:29 +0000 |
commit | cf52c765b09c13868d5cc5a8eb0297854be660d5 (patch) | |
tree | 00d14d325741ffd2f05ff67a9360b6df05f9c583 /sim/arm/armemu.h | |
parent | 4ef2594f4ed0fe4191d9e791e84b6241f968fc7c (diff) | |
download | gdb-cf52c765b09c13868d5cc5a8eb0297854be660d5.zip gdb-cf52c765b09c13868d5cc5a8eb0297854be660d5.tar.gz gdb-cf52c765b09c13868d5cc5a8eb0297854be660d5.tar.bz2 |
* armemu.h (GETSPSR): Call ARMul_GetSPSR().
* armsupp.c (ARMul_CPSRAltered): Zero out bits as they're
extracted from state->Cpsr, but preserve the unused bits.
(ARMul_GetCPSR): Get bits preserved in state->Cpsr.
(ARMul_GetSPSR, ARMul_FixCPSR): Use ARMul_GetCPSR() to
get the full CPSR word.
Diffstat (limited to 'sim/arm/armemu.h')
-rw-r--r-- | sim/arm/armemu.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/arm/armemu.h b/sim/arm/armemu.h index 5e832f2..da7fb2b 100644 --- a/sim/arm/armemu.h +++ b/sim/arm/armemu.h @@ -163,7 +163,7 @@ extern ARMword isize; #define PATCHR15 state->Reg[15] = ECC | ER15INT | EMODE | R15PC #endif -#define GETSPSR(bank) bank>0?state->Spsr[bank]:ECC | EINT | EMODE ; +#define GETSPSR(bank) (ARMul_GetSPSR (state, EMODE)) #define SETPSR_F(d,s) d = ((d) & ~PSR_FBITS) | ((s) & PSR_FBITS) #define SETPSR_S(d,s) d = ((d) & ~PSR_SBITS) | ((s) & PSR_SBITS) #define SETPSR_X(d,s) d = ((d) & ~PSR_XBITS) | ((s) & PSR_XBITS) |