summaryrefslogtreecommitdiff
path: root/src/target/armv4_5.h
diff options
context:
space:
mode:
authorDavid Brownell <dbrownell@users.sourceforge.net>2009-12-04 16:51:48 -0800
committerDavid Brownell <dbrownell@users.sourceforge.net>2009-12-04 16:51:48 -0800
commitbdde9460b923ab61fad678bf1e3f0da04e1d94ee (patch)
tree455782ac27db2b2acbffee591159fd30558df7d2 /src/target/armv4_5.h
parentacd6d3399486110e69db8d5ec752e10067c29ad0 (diff)
downloadopenocd+libswd-bdde9460b923ab61fad678bf1e3f0da04e1d94ee.tar.gz
openocd+libswd-bdde9460b923ab61fad678bf1e3f0da04e1d94ee.tar.bz2
openocd+libswd-bdde9460b923ab61fad678bf1e3f0da04e1d94ee.tar.xz
openocd+libswd-bdde9460b923ab61fad678bf1e3f0da04e1d94ee.zip
ARM: remove semihosting globals
Store a flag and errno in in "struct arm". Have "poll" output report when semihosting is active. Shrink some of the affected lines. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Diffstat (limited to 'src/target/armv4_5.h')
-rw-r--r--src/target/armv4_5.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/target/armv4_5.h b/src/target/armv4_5.h
index 6c83c3b3..615e4864 100644
--- a/src/target/armv4_5.h
+++ b/src/target/armv4_5.h
@@ -103,6 +103,12 @@ struct arm
/** Flag reporting unavailability of the BKPT instruction. */
bool is_armv4;
+ /** Flag reporting whether semihosting is active. */
+ bool is_semihosting;
+
+ /** Value to be returned by semihosting SYS_ERRNO request. */
+ int semihosting_errno;
+
/** Backpointer to the target. */
struct target *target;