aboutsummaryrefslogtreecommitdiff
path: root/sim/arm/arminit.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2000-09-15 23:55:50 +0000
committerNick Clifton <nickc@redhat.com>2000-09-15 23:55:50 +0000
commit3943c96b075b8584c9d9417c319371394b928bd6 (patch)
treec2e8ea4de595f6582fa9833a2f2d62d69a6f6df1 /sim/arm/arminit.c
parentf7c9d7b6986678dc1be12199492d97ff2624c2d8 (diff)
downloadgdb-3943c96b075b8584c9d9417c319371394b928bd6.zip
gdb-3943c96b075b8584c9d9417c319371394b928bd6.tar.gz
gdb-3943c96b075b8584c9d9417c319371394b928bd6.tar.bz2
Replace StrongARM property with v4 and v5 properties.
Diffstat (limited to 'sim/arm/arminit.c')
-rw-r--r--sim/arm/arminit.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/sim/arm/arminit.c b/sim/arm/arminit.c
index 3ee4c69..a3f0001 100644
--- a/sim/arm/arminit.c
+++ b/sim/arm/arminit.c
@@ -85,7 +85,7 @@ ARMul_NewState (void)
}
for (i = 0; i < 7; i++)
state->Spsr[i] = 0;
-
+
state->Mode = USER26MODE;
state->CallDebug = FALSE;
@@ -124,20 +124,22 @@ ARMul_NewState (void)
state->lateabtSig = LOW;
state->bigendSig = LOW;
- state->is_StrongARM = LOW;
+ state->is_v4 = LOW;
+ state->is_v5 = LOW;
ARMul_Reset (state);
- return (state);
+
+ return state;
}
/***************************************************************************\
-* Call this routine to set ARMulator to model a certain processor *
+ Call this routine to set ARMulator to model certain processor properities
\***************************************************************************/
void
-ARMul_SelectProcessor (ARMul_State * state, unsigned processor)
+ARMul_SelectProcessor (ARMul_State * state, unsigned properties)
{
- if (processor & ARM_Fix26_Prop)
+ if (properties & ARM_Fix26_Prop)
{
state->prog32Sig = LOW;
state->data32Sig = LOW;
@@ -150,7 +152,8 @@ ARMul_SelectProcessor (ARMul_State * state, unsigned processor)
state->lateabtSig = LOW;
- state->is_StrongARM = (processor & ARM_Strong_Prop) ? HIGH : LOW;
+ state->is_v4 = (properties & (ARM_v4_Prop | ARM_v5_Prop)) ? HIGH : LOW;
+ state->is_v5 = (properties & ARM_v5_Prop) ? HIGH : LOW;
}
/***************************************************************************\