]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
target/ppc: Fix CPUClass::gdb_num_core_regs value
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 17 Feb 2026 07:07:21 +0000 (08:07 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Wed, 25 Feb 2026 22:46:04 +0000 (23:46 +0100)
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>

target/ppc/cpu_init.c

index c809c1f4d89ddebc306b1081e63711678c02a234..27de8d80204f787d83641ad4d1d16c70d4c0912a 100644 (file)
@@ -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;