Remove more unused functionality.
Change-Id: I43283b9556c959f891a587fb39bdd1ab9206e8afmacbuild
parent
dbecbfee99
commit
23bd6d08c9
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue