diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2000-07-04 07:18:18 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@redhat.com> | 2000-07-04 07:18:18 +0000 |
commit | 1e6b544a9787ed223fb9c9a462facc62c23d517b (patch) | |
tree | a26c291855f6e63fd5fa52756b7a5f66c23b5c4f /sim/arm/arminit.c | |
parent | 66210567f07e22e5f43e4e648358fc6b0fceac44 (diff) | |
download | gdb-1e6b544a9787ed223fb9c9a462facc62c23d517b.zip gdb-1e6b544a9787ed223fb9c9a462facc62c23d517b.tar.gz gdb-1e6b544a9787ed223fb9c9a462facc62c23d517b.tar.bz2 |
* armdefs.h (struct ARMul_State): Add is_StrongARM.
(ARM_Strong_Prop, STRONGARM): Define.
* arminit.c (ARMul_NewState): Reset is_StrongARM.
(ARMul_SelectProcessor): Set is_StrongARM.
* wrapper.c (sim_create_inferior): Use bfd machine type to
determine processor type to emulate.
* armemu.h (BUSUSEDINCPCS, BUSUSEDINCPCN): Don't increment PC
when emulating StrongARM.
Diffstat (limited to 'sim/arm/arminit.c')
-rw-r--r-- | sim/arm/arminit.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sim/arm/arminit.c b/sim/arm/arminit.c index 66e6dad..3ee4c69 100644 --- a/sim/arm/arminit.c +++ b/sim/arm/arminit.c @@ -124,6 +124,8 @@ ARMul_NewState (void) state->lateabtSig = LOW; state->bigendSig = LOW; + state->is_StrongARM = LOW; + ARMul_Reset (state); return (state); } @@ -147,6 +149,8 @@ ARMul_SelectProcessor (ARMul_State * state, unsigned processor) } state->lateabtSig = LOW; + + state->is_StrongARM = (processor & ARM_Strong_Prop) ? HIGH : LOW; } /***************************************************************************\ |