target/riscv: Remove non-functional code in riscv_program_exec().
Addresses #845. Change-Id: If4eee383f92946669a84f92e52a3ac3600707525 Signed-off-by: Tim Newsome <tim@sifive.com>
This commit is contained in:
parent
80d529cad3
commit
57d20e4d96
|
@ -72,10 +72,6 @@ int riscv_program_exec(struct riscv_program *p, struct target *t)
|
|||
return ERROR_FAIL;
|
||||
}
|
||||
|
||||
for (size_t i = 0; i < riscv_debug_buffer_size(p->target); ++i)
|
||||
if (i >= riscv_debug_buffer_size(p->target))
|
||||
p->debug_buffer[i] = riscv_read_debug_buffer(t, i);
|
||||
|
||||
for (size_t i = GDB_REGNO_ZERO; i <= GDB_REGNO_XPR31; ++i)
|
||||
if (p->writes_xreg[i])
|
||||
riscv_set_register(t, i, saved_registers[i]);
|
||||
|
|
Loading…
Reference in New Issue