aboutsummaryrefslogtreecommitdiff
path: root/src/target/cortex_m.h
diff options
context:
space:
mode:
authorMatthias Welwarsky <matthias.welwarsky@sysgo.com>2016-11-13 13:23:08 +0100
committerPaul Fertser <fercerpav@gmail.com>2016-12-08 12:35:58 +0000
commit097aa2979e0eefa822d4a16f055dcf9fc31e3dde (patch)
tree3772062836e297db415168222baab5d4ad3c6479 /src/target/cortex_m.h
parent1d8b6b743416bfda8f82c80aa2278c2d88e2afaa (diff)
downloadriscv-openocd-097aa2979e0eefa822d4a16f055dcf9fc31e3dde.zip
riscv-openocd-097aa2979e0eefa822d4a16f055dcf9fc31e3dde.tar.gz
riscv-openocd-097aa2979e0eefa822d4a16f055dcf9fc31e3dde.tar.bz2
cortex_m: allow setting debug ap during create
This patch adds a Cortex-M private configuration option that allows setting the acess point during target creation. This circumvents situations in hybrid systems when the correct access point can not be automatically detected. Change-Id: If313a5250e6e66509bb9080f3498feab7781dced Signed-off-by: Matthias Welwarsky <matthias.welwarsky@sysgo.com> Reviewed-on: http://openocd.zylin.com/3639 Tested-by: jenkins Reviewed-by: Paul Fertser <fercerpav@gmail.com>
Diffstat (limited to 'src/target/cortex_m.h')
-rw-r--r--src/target/cortex_m.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/target/cortex_m.h b/src/target/cortex_m.h
index eabaac4..3d9714b 100644
--- a/src/target/cortex_m.h
+++ b/src/target/cortex_m.h
@@ -188,6 +188,8 @@ struct cortex_m_common {
enum cortex_m_isrmasking_mode isrmasking_mode;
struct armv7m_common armv7m;
+
+ int apsel;
};
static inline struct cortex_m_common *