summaryrefslogtreecommitdiff
path: root/src/target/arm.h
diff options
context:
space:
mode:
authorSpencer Oliver <ntfreak@users.sourceforge.net>2010-02-26 23:29:38 +0000
committerSpencer Oliver <ntfreak@users.sourceforge.net>2010-02-28 22:48:37 +0000
commit9d6ede25ddb0863873f84b6a55f4300891429049 (patch)
tree6acf9128732ed275ddc733fcd6fece4229e519b5 /src/target/arm.h
parent550abe7396f60274ffd0c5f373eda046af9d9a85 (diff)
downloadopenocd+libswd-9d6ede25ddb0863873f84b6a55f4300891429049.tar.gz
openocd+libswd-9d6ede25ddb0863873f84b6a55f4300891429049.tar.bz2
openocd+libswd-9d6ede25ddb0863873f84b6a55f4300891429049.tar.xz
openocd+libswd-9d6ede25ddb0863873f84b6a55f4300891429049.zip
semihosting: move semihosting cmd to arm cmd group
Move semihosting cmd to the arm cmd group. Targets that support semihosting will setup the setup_semihosting callback function. Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
Diffstat (limited to 'src/target/arm.h')
-rw-r--r--src/target/arm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/target/arm.h b/src/target/arm.h
index 6b304e9f..ee4bd767 100644
--- a/src/target/arm.h
+++ b/src/target/arm.h
@@ -132,6 +132,8 @@ struct arm {
/** Value to be returned by semihosting SYS_ERRNO request. */
int semihosting_errno;
+ int (*setup_semihosting)(struct target *target, int enable);
+
/** Backpointer to the target. */
struct target *target;