diff --git a/src/target/riscv/riscv_reg.c b/src/target/riscv/riscv_reg.c index ec21c46af..4f386f47c 100644 --- a/src/target/riscv/riscv_reg.c +++ b/src/target/riscv/riscv_reg.c @@ -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; @@ -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;