Skip to content

Commit

Permalink
target/riscv: re-apply patch do stop avoid warnings when a non-existe…
Browse files Browse the repository at this point in the history
…nt CSR is hidden

the original fix was introduced in b201a5d but was lost in 3883b03
  • Loading branch information
aap-sc committed Aug 21, 2024
1 parent e07d70e commit e56dc61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/target/riscv/riscv_reg.c
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,7 @@ int riscv_reg_impl_expose_csrs(const struct target *target)
struct reg * const reg = riscv_reg_impl_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 exposing CSR %d: register already exists.",
csr_number);
continue;
Expand Down

0 comments on commit e56dc61

Please sign in to comment.