Skip to content

Commit

Permalink
Merge pull request #1072 from aap-sc/aap-sc/fix_warnings_on_hide_csrs
Browse files Browse the repository at this point in the history
target/riscv: do not emit warnings when a non-existent CSR is hidden
  • Loading branch information
en-sc authored May 30, 2024
2 parents 38ef9cc + b201a5d commit 347981c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/target/riscv/riscv.c
Original file line number Diff line number Diff line change
Expand Up @@ -6885,7 +6885,7 @@ static void hide_csrs(const struct target *target)
struct reg * const reg = get_reg_cache_entry(target, regno);
const unsigned int csr_number = regno - GDB_REGNO_CSR0;
if (!reg->exist) {
LOG_TARGET_WARNING(target,
LOG_TARGET_DEBUG(target,
"Not hiding CSR %d: register does not exist.",
csr_number);
continue;
Expand Down

0 comments on commit 347981c

Please sign in to comment.