summaryrefslogtreecommitdiff
path: root/src/target/arm11.h
diff options
context:
space:
mode:
authorDavid Brownell <dbrownell@users.sourceforge.net>2009-12-02 22:57:07 -0800
committerDavid Brownell <dbrownell@users.sourceforge.net>2009-12-02 23:08:42 -0800
commit62dd15d78f57d56310bb3cb1bfc9b8995cb69668 (patch)
tree246d2a0baf97c917e4c913255aebc37ce04503af /src/target/arm11.h
parent7e18d96d03e39ef55c0b1d420b53247a29fef24b (diff)
downloadopenocd+libswd-62dd15d78f57d56310bb3cb1bfc9b8995cb69668.tar.gz
openocd+libswd-62dd15d78f57d56310bb3cb1bfc9b8995cb69668.tar.bz2
openocd+libswd-62dd15d78f57d56310bb3cb1bfc9b8995cb69668.tar.xz
openocd+libswd-62dd15d78f57d56310bb3cb1bfc9b8995cb69668.zip
ARM11: don't expose WDTR
Don't expose the WDTR register through the register cache any more. If anyone wants Tcl scripts to be able to use DCC based communication with app code in the target, this wouldn't do it. Bugfix: don't trust the Tcl-accessible version of DSCR to flag whether WDTR needs to be restored when resuming.
Diffstat (limited to 'src/target/arm11.h')
-rw-r--r--src/target/arm11.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/target/arm11.h b/src/target/arm11.h
index cde6c787..56feb2ea 100644
--- a/src/target/arm11.h
+++ b/src/target/arm11.h
@@ -26,7 +26,7 @@
#include "armv4_5.h"
#include "arm_dpm.h"
-#define ARM11_REGCACHE_COUNT 2
+#define ARM11_REGCACHE_COUNT 1
#define ARM11_TAP_DEFAULT TAP_INVALID
@@ -63,8 +63,11 @@ struct arm11_common
Use only for debug message generation */
uint32_t saved_rdtr;
+ uint32_t saved_wdtr;
bool is_rdtr_saved;
+ bool is_wdtr_saved;
+
bool simulate_reset_on_next_halt; /**< Perform cleanups of the ARM state on next halt */
/** \name Shadow registers to save debug state */