On 12/19/25 11:08 AM, Alex Bennée wrote:
Before this we suppress all ARM_CP_NORAW registers being listed under
GDB. This includes useful registers like CurrentEL which gets tagged
as ARM_CP_NO_RAW because it is one of the ARM_CP_SPECIAL_MASK
registers. These are registers TCG can directly compute because we
have the information at compile time but until now with no readfn.
Add a .readfn to return the CurrentEL and then loosen the restrictions
in arm_register_sysreg_for_feature to allow ARM_CP_NORAW registers to
be read if there is a readfn available.
Signed-off-by: Alex Bennée <[email protected]>
Message-ID: <[email protected]>
---
vRFC
- this is a useful debugging aid but a bit haphazard for
up-streaming. See thread comments for details.
---
target/arm/gdbstub.c | 6 +++++-
target/arm/helper.c | 15 ++++++++++++++-
2 files changed, 19 insertions(+), 2 deletions(-)
Reviewed-by: Pierrick Bouvier <[email protected]>