Skip to content

Commit 90162b3

Browse files
authored
Merge pull request #1130 from en-sc/en-sc/fix-reg-hide-warning
Revert "target/riscv: re-apply patch do stop avoid warnings when a no… …n-existent CSR is hidden"
2 parents c85d4e1 + 7a70a28 commit 90162b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/target/riscv/riscv_reg.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -730,7 +730,7 @@ int riscv_reg_impl_expose_csrs(const struct target *target)
730730
struct reg * const reg = riscv_reg_impl_cache_entry(target, regno);
731731
const unsigned int csr_number = regno - GDB_REGNO_CSR0;
732732
if (reg->exist) {
733-
LOG_TARGET_DEBUG(target,
733+
LOG_TARGET_WARNING(target,
734734
"Not exposing CSR %d: register already exists.",
735735
csr_number);
736736
continue;
@@ -756,7 +756,7 @@ void riscv_reg_impl_hide_csrs(const struct target *target)
756756
struct reg * const reg = riscv_reg_impl_cache_entry(target, regno);
757757
const unsigned int csr_number = regno - GDB_REGNO_CSR0;
758758
if (!reg->exist) {
759-
LOG_TARGET_WARNING(target,
759+
LOG_TARGET_DEBUG(target,
760760
"Not hiding CSR %d: register does not exist.",
761761
csr_number);
762762
continue;

0 commit comments

Comments
 (0)