Skip to content

Commit 8ea44aa

Browse files
authored
Merge pull request #1118 from aap-sc/aap-sc/fixup_hidecsr_warnings
target/riscv: re-apply patch do stop avoid warnings when a non-existent CSR is hidden
2 parents 38bd4b4 + e56dc61 commit 8ea44aa

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_WARNING(target,
733+
LOG_TARGET_DEBUG(target,
734734
"Not exposing CSR %d: register already exists.",
735735
csr_number);
736736
continue;

0 commit comments

Comments
 (0)