summary refs log tree commit diff stats
path: root/hw/gpio/omap_gpio.c
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2025-05-14 14:29:46 +0100
committerPeter Maydell <peter.maydell@linaro.org>2025-05-14 14:29:46 +0100
commitd2c655a5f42ef7466c70cb223a9b9fc292f6b593 (patch)
treebd43a512d49bfd87dc0ed13b65a312683e3e58f7 /hw/gpio/omap_gpio.c
parentb4ae54989b911876540ba4ba9090901235e3047a (diff)
downloadfocaccia-qemu-d2c655a5f42ef7466c70cb223a9b9fc292f6b593.tar.gz
focaccia-qemu-d2c655a5f42ef7466c70cb223a9b9fc292f6b593.zip
target/arm: Present AArch64 gdbstub based on ARM_FEATURE_AARCH64
Currently we provide an AArch64 gdbstub for CPUs which are
TYPE_AARCH64_CPU, and an AArch32 gdbstub for those which are only
TYPE_ARM_CPU.  This mostly does the right thing, except in the
corner case of KVM with -cpu host,aarch64=off.  That produces a CPU
which is TYPE_AARCH64_CPU but which has ARM_FEATURE_AARCH64 removed
and which to the guest is in AArch32 mode.

Now we have moved all the handling of AArch64-vs-AArch32 gdbstub
behaviour into TYPE_ARM_CPU we can change the condition we use for
whether to select the AArch64 gdbstub to look at ARM_FEATURE_AARCH64.
This will mean that we now correctly provide an AArch32 gdbstub for
aarch64=off CPUs.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20250429132200.605611-5-peter.maydell@linaro.org
Diffstat (limited to 'hw/gpio/omap_gpio.c')
0 files changed, 0 insertions, 0 deletions