summaryrefslogtreecommitdiff
path: root/src/target/armv4_5.c
diff options
context:
space:
mode:
authorDavid Brownell <dbrownell@users.sourceforge.net>2009-11-18 13:22:27 -0800
committerDavid Brownell <dbrownell@users.sourceforge.net>2009-11-18 13:22:27 -0800
commitbbebfd9e134ec84a29dd68bc3661ead57435a4c3 (patch)
treedb209d49fd8d9c6f41e104d1b1af7c19419584c6 /src/target/armv4_5.c
parent9b1f9810b090958bb4a669034173a01683c6e3e9 (diff)
downloadopenocd+libswd-bbebfd9e134ec84a29dd68bc3661ead57435a4c3.tar.gz
openocd+libswd-bbebfd9e134ec84a29dd68bc3661ead57435a4c3.tar.bz2
openocd+libswd-bbebfd9e134ec84a29dd68bc3661ead57435a4c3.tar.xz
openocd+libswd-bbebfd9e134ec84a29dd68bc3661ead57435a4c3.zip
ARM: add "core_type" field to "struct arm"
It's used to flag cores with the "TrustZone" extension, and is used in subsequent patches to set up support for the registers shadowed by its new secure monitor mode. The ARM1176 and Cortex-A8 both support this new mode. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Diffstat (limited to 'src/target/armv4_5.c')
-rw-r--r--src/target/armv4_5.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/target/armv4_5.c b/src/target/armv4_5.c
index d22e0f3a..3e27ba41 100644
--- a/src/target/armv4_5.c
+++ b/src/target/armv4_5.c
@@ -1015,5 +1015,8 @@ int armv4_5_init_arch_info(struct target *target, struct arm *armv4_5)
armv4_5->core_state = ARMV4_5_STATE_ARM;
armv4_5->core_mode = ARMV4_5_MODE_USR;
+ /* core_type may be overridden by subtype logic */
+ armv4_5->core_type = ARMV4_5_MODE_ANY;
+
return ERROR_OK;
}