aboutsummaryrefslogtreecommitdiff
path: root/src/target/feroceon.c
diff options
context:
space:
mode:
authorAndreas Fritiofson <andreas.fritiofson@gmail.com>2013-03-11 22:21:13 +0100
committerSpencer Oliver <spen@spen-soft.co.uk>2013-09-13 19:33:28 +0000
commit5c2f920cc792d40f449cf596b5729671d0414fa1 (patch)
tree22b1e15e88202afdd15aac62de817814536601d8 /src/target/feroceon.c
parent52eb82e893f058ef86e61b5a73334c8a44070100 (diff)
downloadriscv-openocd-5c2f920cc792d40f449cf596b5729671d0414fa1.zip
riscv-openocd-5c2f920cc792d40f449cf596b5729671d0414fa1.tar.gz
riscv-openocd-5c2f920cc792d40f449cf596b5729671d0414fa1.tar.bz2
[RFC] target: Move bulk_write_memory to arm7_9
The only remaining user is arm7_9 so remove it from the target API and add it to struct arm7_9_common to support all its variants with minimal changes. Many of the variants are likely not correct in the cache/mmu handling when the bulk write is triggered. This patch does nothing to change that, except for arm946e, where it was easier to do what might be the right thing. Change-Id: Ie73ac07507ff0936fefdb90760046cc8810ed182 Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com> Reviewed-on: http://openocd.zylin.com/1220 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
Diffstat (limited to 'src/target/feroceon.c')
-rw-r--r--src/target/feroceon.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/target/feroceon.c b/src/target/feroceon.c
index ab43f3d..d3037c5 100644
--- a/src/target/feroceon.c
+++ b/src/target/feroceon.c
@@ -605,6 +605,8 @@ static void feroceon_common_setup(struct target *target)
arm7_9->enable_single_step = feroceon_enable_single_step;
arm7_9->disable_single_step = feroceon_disable_single_step;
+ arm7_9->bulk_write_memory = feroceon_bulk_write_memory;
+
/* MOE is not implemented */
arm7_9->examine_debug_reason = feroceon_examine_debug_reason;
@@ -695,8 +697,7 @@ struct target_type feroceon_target = {
.get_gdb_reg_list = arm_get_gdb_reg_list,
.read_memory = arm7_9_read_memory,
- .write_memory = arm926ejs_write_memory,
- .bulk_write_memory = feroceon_bulk_write_memory,
+ .write_memory = arm926ejs_write_memory_opt,
.checksum_memory = arm_checksum_memory,
.blank_check_memory = arm_blank_check_memory,
@@ -733,8 +734,7 @@ struct target_type dragonite_target = {
.get_gdb_reg_list = arm_get_gdb_reg_list,
.read_memory = arm7_9_read_memory,
- .write_memory = arm7_9_write_memory,
- .bulk_write_memory = feroceon_bulk_write_memory,
+ .write_memory = arm7_9_write_memory_opt,
.checksum_memory = arm_checksum_memory,
.blank_check_memory = arm_blank_check_memory,