From 62dd15d78f57d56310bb3cb1bfc9b8995cb69668 Mon Sep 17 00:00:00 2001 From: David Brownell Date: Wed, 2 Dec 2009 22:57:07 -0800 Subject: 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. --- src/target/arm11.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/target/arm11.h') 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 */ -- cgit v1.2.3