summaryrefslogtreecommitdiff
path: root/src/target/armv4_5.h
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-09-09 06:28:49 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-09-09 06:28:49 +0000
commitaa46b1537792688510717cbbc215da160c2cb665 (patch)
tree86a902ae1c0e568e0793c84c05643aaecbab8801 /src/target/armv4_5.h
parent8b2b0071a9a1f412a752da21542d4bcdaccd5751 (diff)
downloadopenocd+libswd-aa46b1537792688510717cbbc215da160c2cb665.tar.gz
openocd+libswd-aa46b1537792688510717cbbc215da160c2cb665.tar.bz2
openocd+libswd-aa46b1537792688510717cbbc215da160c2cb665.tar.xz
openocd+libswd-aa46b1537792688510717cbbc215da160c2cb665.zip
David Brownell <david-b@pacbell.net>
Optionally shave time off the armv4_5 run_algorithm() code: let them terminate using software breakpoints, avoiding roundtrips to manage hardware ones. Enable this by using BKPT to terminate execution instead of "branch to here" loops. Then pass zero as the exit address, except when running on an ARMv4 core. ARM7TDMI, ARM9TDMI, and derived cores now set a flag saying they're ARMv4. Use that mechanism in arm_nandwrite(), for about 3% speedup on a DaVinci ARM926 core; not huge, but it helps. Some other algorithms could use this too (mostly flavors of flash operation). git-svn-id: svn://svn.berlios.de/openocd/trunk@2680 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/target/armv4_5.h')
-rw-r--r--src/target/armv4_5.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/target/armv4_5.h b/src/target/armv4_5.h
index aed3a48d..3c8411f0 100644
--- a/src/target/armv4_5.h
+++ b/src/target/armv4_5.h
@@ -76,6 +76,7 @@ typedef struct armv4_5_common_s
reg_cache_t *core_cache;
enum armv4_5_mode core_mode;
enum armv4_5_state core_state;
+ bool is_armv4;
int (*full_context)(struct target_s *target);
int (*read_core_reg)(struct target_s *target, int num, enum armv4_5_mode mode);
int (*write_core_reg)(struct target_s *target, int num, enum armv4_5_mode mode, uint32_t value);