aboutsummaryrefslogtreecommitdiff
path: root/src/target/target.h
diff options
context:
space:
mode:
authorMathias K <kesmtp@freenet.de>2013-02-25 18:15:15 +0100
committerSpencer Oliver <spen@spen-soft.co.uk>2013-03-05 15:08:52 +0000
commit5d80b365526537d2e8705e8bf4de1485b4bb6be6 (patch)
tree84dbe7190c7123e2edf63f75a0c21012c74fa81e /src/target/target.h
parentc4e0109644b6c9196c4a042804120da5fb46a8d6 (diff)
downloadriscv-openocd-5d80b365526537d2e8705e8bf4de1485b4bb6be6.zip
riscv-openocd-5d80b365526537d2e8705e8bf4de1485b4bb6be6.tar.gz
riscv-openocd-5d80b365526537d2e8705e8bf4de1485b4bb6be6.tar.bz2
Move back off timer to target struct
Move the global target back off timer to the target struct. This will fix the wrong error handling with multi target devices like smp systems. Change-Id: Ia327182ed5d13ca87323700017a8c40ecc6b25a3 Signed-off-by: Mathias K <kesmtp@freenet.de> Reviewed-on: http://openocd.zylin.com/1179 Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk> Tested-by: jenkins Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
Diffstat (limited to 'src/target/target.h')
-rw-r--r--src/target/target.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/target/target.h b/src/target/target.h
index 9707bcc..3eade51 100644
--- a/src/target/target.h
+++ b/src/target/target.h
@@ -108,6 +108,12 @@ struct gdb_service {
int32_t core[2];
};
+/* target back off timer */
+struct backoff_timer {
+ int times;
+ int count;
+};
+
/* target_type.h contains the full definition of struct target_type */
struct target {
struct target_type *type; /* target type definition (name, access functions) */
@@ -171,7 +177,7 @@ struct target {
struct rtos *rtos; /* Instance of Real Time Operating System support */
bool rtos_auto_detect; /* A flag that indicates that the RTOS has been specified as "auto"
* and must be detected when symbols are offered */
-
+ struct backoff_timer backoff;
int smp; /* add some target attributes for smp support */
struct target_list *head;
/* the gdb service is there in case of smp, we have only one gdb server