You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qemu/target/arm
Vacha Bhavsar 97b3d732af target/arm: Fix handling of setting SVE registers from gdb
The code to handle setting SVE registers via the gdbstub is broken:
 * it sets each pair of elements in the zregs[].d[] array in the
   wrong order for the most common (little endian) case: the least
   significant 64-bit value comes first
 * it makes no attempt to handle target_endian()
 * it does a simple copy out of the (target endian) gdbstub buffer
   into the (host endan) zregs data structure, which is wrong on
   big endian hosts

Fix all these problems:
 * use ldq_p() to read from the gdbstub buffer
 * check target_big_endian() to see if we need to handle the
   128-bit values the opposite way around

Cc: qemu-stable@nongnu.org
Signed-off-by: Vacha Bhavsar <vacha.bhavsar@oss.qualcomm.com>
Message-id: 20250722173736.2332529-3-vacha.bhavsar@oss.qualcomm.com
[PMM: adjusted commit message, fixed spacing]
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
1 week ago
..
hvf target/arm: hvf: stubbing reads to LORC_EL1 2 weeks ago
tcg target/arm: Fix LD1W, LD1D to 128-bit elements 2 weeks ago
Kconfig kconfig: express dependency of individual boards on libfdt 1 year ago
arch_dump.c target/arm/arch_dump: remove TARGET_AARCH64 conditionals 3 months ago
arm-powerctl.c include: Rename sysemu/ -> system/ 8 months ago
arm-powerctl.h target/arm/arm-powerctl: Add new arm_set_cpu_on_and_reset() 7 years ago
arm-qmp-cmds.c target/qmp: Use target_cpu_type() 4 weeks ago
common-semi-target.h target/arm/common-semi-target.h: Remove unnecessary boot.h include 2 years ago
cortex-regs.c target/arm: Saturate L2CTLR_EL1 core count field rather than overflowing 2 years ago
cpregs-pmu.c target/arm: add support for 64-bit PMCCNTR in AArch32 mode 2 weeks ago
cpregs.h target/arm: Split out performance monitor regs to cpregs-pmu.c 1 month ago
cpu-features.h target/arm: Add isar feature tests for SME2p1, SVE2p1 1 month ago
cpu-param.h accel/tcg: Move TARGET_TAGGED_ADDRESSES to TCGCPUOps.untagged_addr 3 months ago
cpu-qom.h target/arm: Remove TYPE_AARCH64_CPU 3 months ago
cpu-sysregs.h arm/cpu: Add sysreg definitions in cpu-sysregs.h 1 month ago
cpu-sysregs.h.inc arm/cpu: store clidr into the idregs array 1 month ago
cpu.c qemu: Declare all load/store helper in 'qemu/bswap.h' 4 weeks ago
cpu.h arm/cpu: store clidr into the idregs array 1 month ago
cpu32-stubs.c target/arm/cpu: remove TARGET_AARCH64 in arm_cpu_finalize_features 3 months ago
cpu64.c arm/cpu: store clidr into the idregs array 1 month ago
debug_helper.c target/arm: Reinstate bogus AArch32 DBGDTRTX register for migration compat 1 week ago
gdbstub.c target/arm: Handle AArch64 gdb read/write regs in TYPE_ARM_CPU 4 months ago
gdbstub64.c target/arm: Fix handling of setting SVE registers from gdb 1 week ago
gtimer.h target/arm: Document the architectural names of our GTIMERs 5 months ago
helper.c target/arm: Split out performance monitor regs to cpregs-pmu.c 1 month ago
helper.h target/arm/helper: extract common helpers 3 months ago
hvf-stub.c target/arm/hvf_arm: Avoid using poisoned CONFIG_HVF definition 2 months ago
hvf_arm.h target/arm/hvf: Include missing 'cpu-qom.h' header 2 months ago
hyp_gdbstub.c target/arm: Replace target_ulong -> vaddr for HWBreakpoint 3 months ago
idau.h Use DECLARE_*CHECKER* macros 5 years ago
internals.h target/arm: Pack mtedesc into upper 32 bits of descriptor 2 weeks ago
kvm-consts.h exec: Rename NEED_CPU_H -> COMPILING_PER_TARGET 1 year ago
kvm-stub.c target/arm/kvm: Add helper to detect EL2 when using KVM 1 month ago
kvm.c target/arm: Enable feature ARM_FEATURE_EL2 if EL2 is supported 1 month ago
kvm_arm.h target/arm: Provide always-false kvm_arm_*_supported() stubs for usermode 3 weeks ago
machine.c target/arm: Add ZT0 1 month ago
meson.build target/arm: Split out performance monitor regs to cpregs-pmu.c 1 month ago
multiprocessing.h target/arm: Expose arm_cpu_mp_affinity() in 'multiprocessing.h' header 2 years ago
ptw.c arm/cpu: Store aa64mmfr0-3 into the idregs array 1 month ago
syndrome.h target/arm: Implement SME2 ZERO ZT0 1 month ago
tcg-stubs.c target/arm: Drop stub for define_tlb_insn_regs 1 month ago
trace-events target/arm: Implement FEAT_ECV CNTPOFF_EL2 handling 1 year ago
trace.h trace: switch position of headers to what Meson requires 5 years ago
vfp_fpscr.c target/arm: Rename vfp_helper.c to vfp_fpscr.c 6 months ago