-
Notifications
You must be signed in to change notification settings - Fork 29
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
gdb: Expose CHERI SCRs via the GDB stub #261
Conversation
int index; | ||
const char *name; | ||
bool code; | ||
} scrs[] = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This duplicates scr_info in cheri_op_helper.c a bit. However, using all-lowercase names is more consistent with other registers exported via GDB.
92a33ac
to
a164216
Compare
This also fixes CSRs exported by GDB to use their name instead of 'csrXXX' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just waiting for the Jenkins rerun to pass
This should fix the use of CSR names in the GDB stub.
This matches the style for all other RISC-V registers including CSRs and avoids a weird collision with STDC which zlib defines as an alias of __STDC__.
This does not expose PCC and DDC in the new SCRs register group since those are already in the general purpose CHERI group.
This does not expose PCC and DDC in the new SCRs register group since those are already in the general purpose CHERI group.