Remove unused code.

Change-Id: Ibc72945ac76513c84d62616c0210e6013b21f7ef
fence_i_fix_for_release
Tim Newsome 2017-12-26 14:27:44 -08:00
parent 561b0c94c0
commit 4fa3d819d2
2 changed files with 0 additions and 18 deletions

View File

@ -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);

View File

@ -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);