Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "target/riscv: re-apply patch do stop avoid warnings when a no… …n-existent CSR is hidden" #1130

Merged
merged 2 commits into from
Sep 17, 2024

Conversation

en-sc
Copy link
Collaborator

@en-sc en-sc commented Sep 10, 2024

This PR fixes the issue with #1118 by reverting commit e56dc61 and re-applying b201a5d

The reverted commit claims to be the same as b201a5d, but it's not -- it changes the warning in riscv_reg_impl_expose_csrs() instead of the one in riscv_reg_impl_hide_csrs().

en-sc and others added 2 commits September 10, 2024 12:55
…n-existent CSR is hidden"

This reverts commit e56dc61.

The reverted commit claims to be the same as
b201a5d, but it's not -- it changes the
warning in `riscv_reg_impl_expose_csrs()` instead of the one in
`riscv_reg_impl_hide_csrs()`.
hide_csrs should not emit warnings on an attempt to hide non-exitents CSR.
hide_csrs funcitonality is intended to be used for scenarios when we don`t
want certain groups of registers to be available in GDB. Typically this is
needed to simplify integration with various IDE. In such scenarious it may
be impractical/unfeseable to figure out which register is present on a
target. So reporting a situation when a user wants to hide a non-existent
register creates way too much noise. This commit reduces severity of
relevant debug message to LOG_TARGET_DEBUG

Change-Id: Icbb982c4bcce7586fe35b6b004d0874d6014d5a7
Copy link
Collaborator

@aap-sc aap-sc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks

@en-sc en-sc merged commit 90162b3 into riscv-collab:riscv Sep 17, 2024
4 checks passed
@en-sc en-sc deleted the en-sc/fix-reg-hide-warning branch September 17, 2024 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants