Revert "target/riscv: re-apply patch do stop avoid warnings when a non-existent CSR is hidden"

This reverts commit e56dc61697.

The reverted commit claims to be the same as
b201a5db23, but it's not -- it changes the
warning in `riscv_reg_impl_expose_csrs()` instead of the one in
`riscv_reg_impl_hide_csrs()`.
This commit is contained in:
Evgeniy Naydanov 2024-09-10 12:55:04 +03:00
parent c85d4e1858
commit 826923fa60
1 changed files with 1 additions and 1 deletions

View File

@ -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;