aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2018-05-07 13:36:25 -0700
committerTim Newsome <tim@sifive.com>2018-05-08 15:21:49 -0700
commitdabaf170bac10975ac1773adb6367bc1ffc0cd6a (patch)
tree78fbbc787dc8e9d4fdeeb26a707d762fdc44d77e
parentda7113e02d51e869bde1233a003fdf57a8d0cc50 (diff)
downloadriscv-openocd-dabaf170bac10975ac1773adb6367bc1ffc0cd6a.zip
riscv-openocd-dabaf170bac10975ac1773adb6367bc1ffc0cd6a.tar.gz
riscv-openocd-dabaf170bac10975ac1773adb6367bc1ffc0cd6a.tar.bz2
blank_check_memory prototype has changed.
Just remove our nop implementation. The default behavior when this is left NULL does the same thing. Change-Id: I865976c694d24661941584cb0efc92fc26612316
-rw-r--r--src/target/riscv/riscv.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/target/riscv/riscv.c b/src/target/riscv/riscv.c
index 6281fad..b171469 100644
--- a/src/target/riscv/riscv.c
+++ b/src/target/riscv/riscv.c
@@ -953,22 +953,6 @@ static int riscv_checksum_memory(struct target *target,
return ERROR_TARGET_RESOURCE_NOT_AVAILABLE;
}
-/* Should run code on the target to check whether a memory
-block holds all-ones (because this is generally called on
-NOR flash which is 1 when "blank")
-Not yet implemented.
-*/
-int riscv_blank_check_memory(struct target *target,
- target_addr_t address,
- uint32_t count,
- uint32_t *blank,
- uint8_t erased_value)
-{
- *blank = 0;
-
- return ERROR_TARGET_RESOURCE_NOT_AVAILABLE;
-}
-
/*** OpenOCD Helper Functions ***/
enum riscv_poll_hart {
@@ -1549,7 +1533,6 @@ struct target_type riscv_target = {
.read_memory = riscv_read_memory,
.write_memory = riscv_write_memory,
- .blank_check_memory = riscv_blank_check_memory,
.checksum_memory = riscv_checksum_memory,
.get_gdb_reg_list = riscv_get_gdb_reg_list,