Remove more unused functionality.

Change-Id: I43283b9556c959f891a587fb39bdd1ab9206e8af
This commit is contained in:
Tim Newsome 2017-10-24 15:11:33 -07:00
parent dbecbfee99
commit 23bd6d08c9
1 changed files with 0 additions and 6 deletions

View File

@ -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) 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); return dmi_write(target, DMI_PROGBUF0 + index, data);
} }
riscv_insn_t riscv013_read_debug_buffer(struct target *target, unsigned index) 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); return dmi_read(target, DMI_PROGBUF0 + index);
} }