aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2017-10-24 15:11:33 -0700
committerTim Newsome <tim@sifive.com>2017-10-24 15:11:33 -0700
commit23bd6d08c9444ef36789f0355e78833dc45fc3f5 (patch)
treec5387d397baa6b2ccaebcee0f1ceb5642f3e7502
parentdbecbfee997bf7d5aa2daef17f0ef7f30ebdaa6b (diff)
downloadriscv-openocd-23bd6d08c9444ef36789f0355e78833dc45fc3f5.zip
riscv-openocd-23bd6d08c9444ef36789f0355e78833dc45fc3f5.tar.gz
riscv-openocd-23bd6d08c9444ef36789f0355e78833dc45fc3f5.tar.bz2
Remove more unused functionality.
Change-Id: I43283b9556c959f891a587fb39bdd1ab9206e8af
-rw-r--r--src/target/riscv/riscv-013.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/target/riscv/riscv-013.c b/src/target/riscv/riscv-013.c
index f47428a..5ff4a6f 100644
--- a/src/target/riscv/riscv-013.c
+++ b/src/target/riscv/riscv-013.c
@@ -1839,17 +1839,11 @@ static enum riscv_halt_reason riscv013_halt_reason(struct target *target)
void riscv013_write_debug_buffer(struct target *target, unsigned index, riscv_insn_t data)
{
- RISCV013_INFO(info);
- if (index >= info->progbufsize)
- return dmi_write(target, DMI_DATA0 + index - info->progbufsize, data);
return dmi_write(target, DMI_PROGBUF0 + index, data);
}
riscv_insn_t riscv013_read_debug_buffer(struct target *target, unsigned index)
{
- RISCV013_INFO(info);
- if (index >= info->progbufsize)
- return dmi_read(target, DMI_DATA0 + index - info->progbufsize);
return dmi_read(target, DMI_PROGBUF0 + index);
}