Skip to content

Commit 826923f

Browse files
committed
Revert "target/riscv: re-apply patch do stop avoid warnings when a non-existent CSR is hidden"
This reverts commit e56dc61. The reverted commit claims to be the same as b201a5d, but it's not -- it changes the warning in `riscv_reg_impl_expose_csrs()` instead of the one in `riscv_reg_impl_hide_csrs()`.
1 parent c85d4e1 commit 826923f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/target/riscv/riscv_reg.c

Lines changed: 1 addition & 1 deletion
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;

0 commit comments

Comments
 (0)