aboutsummaryrefslogtreecommitdiff
path: root/sim/arm/armsupp.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2001-05-08 08:28:28 +0000
committerNick Clifton <nickc@redhat.com>2001-05-08 08:28:28 +0000
commitdac07255f9d1ebda4c5cf7207781ce1d6e07562c (patch)
tree919317938847798bb86755869fafece51ca6ddda /sim/arm/armsupp.c
parent9671de48921b4746825bdd2addbe3f4fd00146d8 (diff)
downloadgdb-dac07255f9d1ebda4c5cf7207781ce1d6e07562c.zip
gdb-dac07255f9d1ebda4c5cf7207781ce1d6e07562c.tar.gz
gdb-dac07255f9d1ebda4c5cf7207781ce1d6e07562c.tar.bz2
Check Mode not Bank in order to determine rocesor mode.
Diffstat (limited to 'sim/arm/armsupp.c')
-rw-r--r--sim/arm/armsupp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sim/arm/armsupp.c b/sim/arm/armsupp.c
index 2d0390d..99b6099 100644
--- a/sim/arm/armsupp.c
+++ b/sim/arm/armsupp.c
@@ -206,7 +206,8 @@ void
ARMul_FixCPSR (ARMul_State * state, ARMword instr, ARMword rhs)
{
state->Cpsr = ARMul_GetCPSR (state);
- if (state->Bank != USERBANK)
+ if (state->Mode != USER26MODE
+ && state->Mode != USER32MODE)
{ /* In user mode, only write flags */
if (BIT (16))
SETPSR_C (state->Cpsr, rhs);