]> git.proxmox.com Git - mirror_qemu.git/commitdiff
target/arm: hide aliased MIDR from gdbstub
authorAlex Bennée <alex.bennee@linaro.org>
Mon, 6 Nov 2023 18:50:55 +0000 (18:50 +0000)
committerAlex Bennée <alex.bennee@linaro.org>
Wed, 8 Nov 2023 15:15:23 +0000 (15:15 +0000)
This is just a constant alias register with the same value as the
"other" MIDR so it serves no purpose being presented to gdbstub.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <20231106185112.2755262-6-alex.bennee@linaro.org>

target/arm/helper.c

index 6acd87f5b9ade0a74eb8096291f854b262d01349..ff1970981ee70a2d262a90166be941c912ca4e1f 100644 (file)
@@ -9000,7 +9000,7 @@ void register_cp_regs_for_features(ARMCPU *cpu)
               .type = ARM_CP_CONST, .resetvalue = cpu->revidr },
         };
         ARMCPRegInfo id_v8_midr_alias_cp_reginfo = {
-            .name = "MIDR", .type = ARM_CP_ALIAS | ARM_CP_CONST,
+            .name = "MIDR", .type = ARM_CP_ALIAS | ARM_CP_CONST | ARM_CP_NO_GDB,
             .cp = 15, .crn = 0, .crm = 0, .opc1 = 0, .opc2 = 4,
             .access = PL1_R, .resetvalue = cpu->midr
         };