diff options
author | David Brownell <dbrownell@users.sourceforge.net> | 2009-11-15 10:35:34 -0800 |
---|---|---|
committer | David Brownell <dbrownell@users.sourceforge.net> | 2009-11-15 10:35:34 -0800 |
commit | 269040bbad7f18066f5ec5707447c33de6290ef5 (patch) | |
tree | 0edee9fc57079e977eb01b13a392963fb70968d9 /src/target/cortex_a8.c | |
parent | 9ac7cdec82c19481b79f2effcefb7106dd7ade41 (diff) | |
download | riscv-openocd-269040bbad7f18066f5ec5707447c33de6290ef5.zip riscv-openocd-269040bbad7f18066f5ec5707447c33de6290ef5.tar.gz riscv-openocd-269040bbad7f18066f5ec5707447c33de6290ef5.tar.bz2 |
ARM: memory utils aren't ARM7/ARM9 dependent
The arm7_9_checksum_memory() and arm7_9_blank_check_memory()
routines are not actually specific to the ARM7 and ARM9 core
generations ... they can work for any core which can run
algorithms using basic ARM (not Thumb) instructions.
Rename them; move the declarations to a more generic site;
likewise move the code (and tidy it a bit in the process).
NOTE: the blank_check() method falsely returned a success
status (0) on one error path, when the algorithm failed.
Fixed this bug.
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Diffstat (limited to 'src/target/cortex_a8.c')
-rw-r--r-- | src/target/cortex_a8.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/target/cortex_a8.c b/src/target/cortex_a8.c index da5e84b..0d00b3a 100644 --- a/src/target/cortex_a8.c +++ b/src/target/cortex_a8.c @@ -1590,8 +1590,9 @@ struct target_type cortexa8_target = { .read_memory = cortex_a8_read_memory, .write_memory = cortex_a8_write_memory, .bulk_write_memory = cortex_a8_bulk_write_memory, - .checksum_memory = arm7_9_checksum_memory, - .blank_check_memory = arm7_9_blank_check_memory, + + .checksum_memory = arm_checksum_memory, + .blank_check_memory = arm_blank_check_memory, .run_algorithm = armv4_5_run_algorithm, |