diff options
author | Evgeniy Naydanov <109669442+en-sc@users.noreply.github.com> | 2024-09-17 12:21:38 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-17 12:21:38 +0300 |
commit | 90162b32508a5bbb06ada0f3b61c5407890e1fc4 (patch) | |
tree | d58c9dcaad7781003af5e85f716c58757743d444 | |
parent | c85d4e1858840fe90a2fa0c521528338952d49da (diff) | |
parent | 7a70a28e6b6f3c4e1bbef8d16fe824c046adb289 (diff) | |
download | riscv-openocd-90162b32508a5bbb06ada0f3b61c5407890e1fc4.zip riscv-openocd-90162b32508a5bbb06ada0f3b61c5407890e1fc4.tar.gz riscv-openocd-90162b32508a5bbb06ada0f3b61c5407890e1fc4.tar.bz2 |
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"
-rw-r--r-- | src/target/riscv/riscv_reg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/target/riscv/riscv_reg.c b/src/target/riscv/riscv_reg.c index ec21c46..4f386f4 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; |