Skip to content

Commit

Permalink
Revert "Initialize all registers in examine"
Browse files Browse the repository at this point in the history
This reverts commit 9d4df34.

I believe the reasoning behind this workaround is no longer valid.

Change-Id: Ie8705f75eb8ad7b72fc8ffcf39125be764cb43be
  • Loading branch information
en-sc committed May 8, 2024
1 parent e9e9037 commit 1c932db
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/target/riscv/riscv-011.c
Original file line number Diff line number Diff line change
Expand Up @@ -1584,8 +1584,6 @@ static int examine(struct target *target)
return result;

target_set_examined(target);
for (size_t i = 0; i < 32; ++i)
reg_cache_set(target, i, -1);
LOG_INFO("Examined RISCV core; XLEN=%d, misa=0x%" PRIx64,
riscv_xlen(target), r->misa);

Expand Down

0 comments on commit 1c932db

Please sign in to comment.