diff --git a/src/target/riscv/riscv.c b/src/target/riscv/riscv.c index efc30e202..cda16f35b 100644 --- a/src/target/riscv/riscv.c +++ b/src/target/riscv/riscv.c @@ -1597,22 +1597,6 @@ riscv_insn_t riscv_read_debug_buffer(struct target *target, int index) return r->read_debug_buffer(target, index); } -riscv_addr_t riscv_read_debug_buffer_x(struct target *target, int index) -{ - riscv_addr_t out = 0; - switch (riscv_xlen(target)) { - case 64: - out |= (uint64_t)riscv_read_debug_buffer(target, index + 1) << 32; - case 32: - out |= riscv_read_debug_buffer(target, index + 0) << 0; - break; - default: - LOG_ERROR("unsupported XLEN %d", riscv_xlen(target)); - abort(); - } - return out; -} - int riscv_execute_debug_buffer(struct target *target) { RISCV_INFO(r); diff --git a/src/target/riscv/riscv.h b/src/target/riscv/riscv.h index 2af312561..71c68a2a7 100644 --- a/src/target/riscv/riscv.h +++ b/src/target/riscv/riscv.h @@ -222,9 +222,7 @@ int riscv_count_triggers_of_hart(struct target *target, int hartid); size_t riscv_debug_buffer_size(struct target *target); riscv_insn_t riscv_read_debug_buffer(struct target *target, int index); -riscv_addr_t riscv_read_debug_buffer_x(struct target *target, int index); int riscv_write_debug_buffer(struct target *target, int index, riscv_insn_t insn); -int riscv_write_debug_buffer_x(struct target *target, int index, riscv_addr_t data); int riscv_execute_debug_buffer(struct target *target); void riscv_fill_dmi_nop_u64(struct target *target, char *buf);