Merge pull request #1072 from aap-sc/aap-sc/fix_warnings_on_hide_csrs

target/riscv: do not emit warnings when a non-existent CSR is hidden
This commit is contained in:
Evgeniy Naydanov 2024-05-30 19:37:35 +03:00 committed by GitHub
commit 347981ca55
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -6885,7 +6885,7 @@ static void hide_csrs(const struct target *target)
struct reg * const reg = get_reg_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;