Merge pull request #161 from riscv/dead_code

Remove unused code.
This commit is contained in:
Tim Newsome 2017-12-26 14:54:00 -08:00 committed by GitHub
commit ca700dcef0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);