From 1ec0fbe2ddadf17f7e0644b441833f0cd20dc137 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Philippe=20Mathieu-Daud=C3=A9?= Date: Tue, 17 Feb 2026 08:07:21 +0100 Subject: [PATCH] target/ppc: Fix CPUClass::gdb_num_core_regs value MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Only 70 registers are exposed from GDB XML file (for either 32 / 64-bit variants). Reviewed-by: Pierrick Bouvier Signed-off-by: Philippe Mathieu-Daudé Message-ID: <20260219191955.83815-8-philmd@linaro.org> --- target/ppc/cpu_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/ppc/cpu_init.c b/target/ppc/cpu_init.c index c809c1f4d89..27de8d80204 100644 --- a/target/ppc/cpu_init.c +++ b/target/ppc/cpu_init.c @@ -7553,7 +7553,7 @@ static void ppc_cpu_class_init(ObjectClass *oc, const void *data) PAGE_WRITE == 2 && PAGE_EXEC == 4); #endif - cc->gdb_num_core_regs = 71; + cc->gdb_num_core_regs = 70; #ifdef USE_APPLE_GDB cc->gdb_read_register = ppc_cpu_gdb_read_register_apple; cc->gdb_write_register = ppc_cpu_gdb_write_register_apple; -- 2.47.3