aboutsummaryrefslogtreecommitdiff
path: root/sim/arm/armdefs.h
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2000-07-04 07:18:18 +0000
committerAlexandre Oliva <aoliva@redhat.com>2000-07-04 07:18:18 +0000
commit1e6b544a9787ed223fb9c9a462facc62c23d517b (patch)
treea26c291855f6e63fd5fa52756b7a5f66c23b5c4f /sim/arm/armdefs.h
parent66210567f07e22e5f43e4e648358fc6b0fceac44 (diff)
downloadgdb-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/armdefs.h')
-rw-r--r--sim/arm/armdefs.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sim/arm/armdefs.h b/sim/arm/armdefs.h
index d08a94c..72dae0a 100644
--- a/sim/arm/armdefs.h
+++ b/sim/arm/armdefs.h
@@ -123,6 +123,8 @@ struct ARMul_State
const struct Dbg_HostosInterface *hostif;
+ unsigned is_StrongARM; /* Are we emulating a StrongARM? */
+
int verbose; /* non-zero means print various messages like the banner */
};
@@ -146,6 +148,7 @@ struct ARMul_State
#define ARM_Debug_Prop 0x10
#define ARM_Isync_Prop ARM_Debug_Prop
#define ARM_Lock_Prop 0x20
+#define ARM_Strong_Prop 0x40
/* ARM2 family */
#define ARM2 (ARM_Fix26_Prop)
@@ -164,6 +167,7 @@ struct ARMul_State
#define ARM610 ARM6
#define ARM620 ARM6
+#define STRONGARM (ARM_Strong_Prop)
/***************************************************************************\
* Macros to extract instruction fields *