@samitouri / QOSamiQemu / commits / 1ec0fbe2dd

target/ppc: Fix CPUClass::gdb_num_core_regs value

Only 70 registers are exposed from GDB XML file (for either 32 / 64-bit variants). Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-ID: <20260219191955.83815-8-philmd@linaro.org>

Philippe Mathieu-Daudé committed Feb 17, 2026 at 08:07 UTC 1ec0fbe2ddadf17f7e0644b441833f0cd20dc137
1 file changed +1 -1
target/ppc/cpu_init.c
+1 -1
@@ -7553,7 +7553,7 @@ static void ppc_cpu_class_init(ObjectClass *oc, const void *data)
7553 PAGE_WRITE == 2 && PAGE_EXEC == 4);
7554 #endif
7555
7556 - cc->gdb_num_core_regs = 71;
7556 + cc->gdb_num_core_regs = 70;
7557 #ifdef USE_APPLE_GDB
7558 cc->gdb_read_register = ppc_cpu_gdb_read_register_apple;
7559 cc->gdb_write_register = ppc_cpu_gdb_write_register_apple;