Merge pull request #846 from riscv/cleanup

target/riscv: Remove non-functional code in riscv_program_exec().
This commit is contained in:
Tim Newsome 2023-05-11 10:27:46 -07:00 committed by GitHub
commit e02c83e401
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 4 deletions

View File

@ -72,10 +72,6 @@ int riscv_program_exec(struct riscv_program *p, struct target *t)
return ERROR_FAIL; 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) for (size_t i = GDB_REGNO_ZERO; i <= GDB_REGNO_XPR31; ++i)
if (p->writes_xreg[i]) if (p->writes_xreg[i])
riscv_set_register(t, i, saved_registers[i]); riscv_set_register(t, i, saved_registers[i]);