Skip to content

Commit

Permalink
Merge pull request #1130 from en-sc/en-sc/fix-reg-hide-warning
Browse files Browse the repository at this point in the history
Revert "target/riscv: re-apply patch do stop avoid warnings when a no… …n-existent CSR is hidden"
  • Loading branch information
en-sc authored Sep 17, 2024
2 parents c85d4e1 + 7a70a28 commit 90162b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 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_DEBUG(target,
LOG_TARGET_WARNING(target,
"Not exposing CSR %d: register already exists.",
csr_number);
continue;
Expand All @@ -756,7 +756,7 @@ void riscv_reg_impl_hide_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 hiding CSR %d: register does not exist.",
csr_number);
continue;
Expand Down

0 comments on commit 90162b3

Please sign in to comment.