[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 03/22] target/arm: hide the 32bit version of PAR from gdbstub
From: |
Alex Bennée |
Subject: |
[PATCH 03/22] target/arm: hide the 32bit version of PAR from gdbstub |
Date: |
Mon, 6 Nov 2023 18:50:53 +0000 |
This is a slightly hacky way to avoid duplicate PAR's in the system
register XML we send to gdb which causes an alias. However the other
alternative would be to post process ARMCPRegInfo once all registers
have been defined looking for textual duplicates. And that seems like
overkill.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20231103195956.1998255-4-alex.bennee@linaro.org>
---
target/arm/helper.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target/arm/helper.c b/target/arm/helper.c
index 5dc0d20a84..104f9378b4 100644
--- a/target/arm/helper.c
+++ b/target/arm/helper.c
@@ -3727,7 +3727,7 @@ static const ARMCPRegInfo vapa_cp_reginfo[] = {
.access = PL1_RW, .resetvalue = 0,
.bank_fieldoffsets = { offsetoflow32(CPUARMState, cp15.par_s),
offsetoflow32(CPUARMState, cp15.par_ns) },
- .writefn = par_write },
+ .writefn = par_write, .type = ARM_CP_NO_GDB },
#ifndef CONFIG_USER_ONLY
/* This underdecoding is safe because the reginfo is NO_RAW. */
{ .name = "ATS", .cp = 15, .crn = 7, .crm = 8, .opc1 = 0, .opc2 = CP_ANY,
--
2.39.2
- [PATCH 00/22] Maintainer updates for 8.2 (gdbstub, tests, plugins) pre-PR, Alex Bennée, 2023/11/06
- [PATCH 10/22] gdbstub: Introduce GDBFeatureBuilder, Alex Bennée, 2023/11/06
- [PATCH 06/22] tests/tcg: add an explicit gdbstub register tester, Alex Bennée, 2023/11/06
- [PATCH 05/22] target/arm: hide aliased MIDR from gdbstub, Alex Bennée, 2023/11/06