From e56dc61697e91cf7273476ec3126078692a5e387 Mon Sep 17 00:00:00 2001 From: Parshintsev Anatoly Date: Wed, 21 Aug 2024 19:17:20 +0300 Subject: [PATCH] target/riscv: re-apply patch do stop avoid warnings when a non-existent CSR is hidden the original fix was introduced in b201a5db23 but was lost in 3883b03a --- src/target/riscv/riscv_reg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/target/riscv/riscv_reg.c b/src/target/riscv/riscv_reg.c index eefd4029a..ec21c46af 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_WARNING(target, + LOG_TARGET_DEBUG(target, "Not exposing CSR %d: register already exists.", csr_number); continue;