]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/arm: Handle AArch64 in TYPE_ARM_CPU gdb_arch_name
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 17 Mar 2025 14:28:13 +0000 (14:28 +0000)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 25 Apr 2025 15:00:41 +0000 (17:00 +0200)
commitbae9fb4b016b1927f6e0cdea9213e33e3a70c9ae
tree1f95d6591a438377131305511efd0c2748eed7ad
parenta1f728ecc90cf6c6db24df53cc951713fca8b94d
target/arm: Handle AArch64 in TYPE_ARM_CPU gdb_arch_name

Instead of having the TYPE_AARCH64_CPU subclass set
CPUClass::gdb_arch_name to a different function, make the
TYPE_ARM_CPU implementation of the method handle AArch64.

For the moment we make the "is this AArch64?" function test "is the
CPU of TYPE_AARCH64_CPU?", so that this produces no behavioural
change.  When we've moved all the gdbstub related methods across to
the base class, we will be able to change this to be "does the CPU
have the ARM_FEATURE_AARCH64 feature?".

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20250317142819.900029-4-peter.maydell@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
target/arm/cpu.c
target/arm/cpu64.c
target/arm/internals.h