From 4fa3d819d2167141e0a62e79267d5dc5df0c90f3 Mon Sep 17 00:00:00 2001 From: Tim Newsome Date: Tue, 26 Dec 2017 14:27:44 -0800 Subject: [PATCH] Remove unused code. Change-Id: Ibc72945ac76513c84d62616c0210e6013b21f7ef --- src/target/riscv/riscv.c | 16 ---------------- src/target/riscv/riscv.h | 2 -- 2 files changed, 18 deletions(-) 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);