qemu/target/sparc
Mikael Szreder 7a74e46808 target/sparc: Fix gdbstub incorrectly handling registers f32-f62
The gdbstub implementation for the Sparc architecture would
incorrectly calculate the the floating point register offset.
This resulted in, for example, registers f32 and f34 to point to
the same value.

The issue was caused by the confusion between even register numbers
and even register indexes. For example, the register index of f32 is 64
and f34 is 65.

Cc: qemu-stable@nongnu.org
Fixes: 30038fd818 ("target-sparc: Change fpr representation to doubles.")
Signed-off-by: Mikael Szreder <git@miszr.win>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <20250214070343.11501-1-git@miszr.win>
2025-02-18 08:29:03 -08:00
..
asi.h target/sparc: Implement monitor ASIs 2024-06-05 09:11:17 -07:00
cpu-feature.h.inc target/sparc: Add feature bit for VIS4 2024-06-05 09:08:39 -07:00
cpu-param.h target/*: Remove TARGET_LONG_BITS from cpu-param.h 2025-02-08 12:41:33 -08:00
cpu-qom.h target: Move ArchCPUClass definition to 'cpu.h' 2023-11-07 13:08:48 +01:00
cpu.c accel/tcg: Move gen_intermediate_code to TCGCPUOps.translate_core 2024-12-24 08:32:15 -08:00
cpu.h accel/tcg: Move gen_intermediate_code to TCGCPUOps.translate_core 2024-12-24 08:32:15 -08:00
fop_helper.c target/sparc: Use float*_muladd_scalbn 2024-12-24 08:32:15 -08:00
gdbstub.c target/sparc: Fix gdbstub incorrectly handling registers f32-f62 2025-02-18 08:29:03 -08:00
helper.c target/sparc: use signed denominator in sdiv helper 2024-06-19 13:50:22 -07:00
helper.h target/sparc: Use float*_muladd_scalbn 2024-12-24 08:32:15 -08:00
insns.decode target/sparc: Fix register selection for all F*TOx and FxTO* instructions 2025-02-18 08:29:03 -08:00
int32_helper.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
int64_helper.c target/sparc: Prefer fast cpu_env() over slower CPU QOM cast macro 2024-03-12 12:04:25 +01:00
Kconfig meson: Introduce target-specific Kconfig 2021-07-09 18:21:34 +02:00
ldst_helper.c accel/tcg: Move user-related declarations out of 'exec/cpu-all.h' (3/4) 2024-12-20 17:44:57 +01:00
machine.c target/sparc: Add FQ and FSR.QNE 2024-09-11 19:54:35 -07:00
meson.build target/sparc: Remove CC_OP leftovers 2023-11-05 12:03:17 -08:00
mmu_helper.c exec/cpu: Extract page-protection definitions to page-protection.h 2024-05-06 11:17:15 +02:00
monitor.c target/sparc: Handle FPRS correctly on big-endian hosts 2023-07-25 14:42:00 +02:00
trace-events docs: fix references to docs/devel/tracing.rst 2021-06-02 06:51:09 +02:00
trace.h trace: switch position of headers to what Meson requires 2020-08-21 06:18:24 -04:00
translate.c accel/tcg: Move gen_intermediate_code to TCGCPUOps.translate_core 2024-12-24 08:32:15 -08:00
translate.h target/sparc: Move sparc_restore_state_to_opc() to cpu.c 2024-12-20 17:44:57 +01:00
vis_helper.c target/sparc: Implement VIS4 comparisons 2024-06-05 09:09:36 -07:00
win_helper.c target/sparc: Use memcpy() and remove memcpy32() 2024-12-12 14:28:38 -06:00