[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 03/29] target/arm: hide the 32bit version of PAR from gdbstub
From: |
Alex Bennée |
Subject: |
[PATCH 03/29] target/arm: hide the 32bit version of PAR from gdbstub |
Date: |
Fri, 3 Nov 2023 19:59:30 +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>
---
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/29] gdbstub and plugin read register and windows support, Alex Bennée, 2023/11/03
- [PATCH 02/29] gdb-xml: fix duplicate register in arm-neon.xml, Alex Bennée, 2023/11/03
- [PATCH 01/29] default-configs: Add TARGET_XML_FILES definition, Alex Bennée, 2023/11/03
- [PATCH 04/29] target/arm: hide all versions of DBGD[RS]AR from gdbstub, Alex Bennée, 2023/11/03
- [PATCH 05/29] target/arm: hide aliased MIDR from gdbstub, Alex Bennée, 2023/11/03
- [PATCH 09/29] gdbstub: Introduce gdb_find_static_feature(), Alex Bennée, 2023/11/03
- [PATCH 08/29] gdbstub: Add num_regs member to GDBFeature, Alex Bennée, 2023/11/03
- [PATCH 07/29] tests/avocado: update the tcg_plugins test, Alex Bennée, 2023/11/03
- [PATCH 03/29] target/arm: hide the 32bit version of PAR from gdbstub,
Alex Bennée <=
- [PATCH 10/29] gdbstub: Introduce GDBFeatureBuilder, Alex Bennée, 2023/11/03
- [PATCH 22/29] cpu: Call plugin hooks only when ready, Alex Bennée, 2023/11/03
- [PATCH 12/29] target/ppc: Use GDBFeature for dynamic XML, Alex Bennée, 2023/11/03
- [PATCH 14/29] gdbstub: Use GDBFeature for gdb_register_coprocessor, Alex Bennée, 2023/11/03
- [PATCH 06/29] tests/tcg: add an explicit gdbstub register tester, Alex Bennée, 2023/11/03
- [PATCH 13/29] target/riscv: Use GDBFeature for dynamic XML, Alex Bennée, 2023/11/03
- [PATCH 16/29] gdbstub: Change gdb_get_reg_cb and gdb_set_reg_cb, Alex Bennée, 2023/11/03