diff options
| author | Peter Maydell <peter.maydell@linaro.org> | 2025-03-17 14:28:15 +0000 |
|---|---|---|
| committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-04-25 17:00:42 +0200 |
| commit | 4b6f74d86c4d4f179643ae2c5f7bbfcf7c1a7725 (patch) | |
| tree | 24450d43d7dc6bc5c62abbda58deb77321c3fe6b /target/arm/cpu64.c | |
| parent | 984ea94818000618c4ff95d0b63f63aba8f2a95e (diff) | |
| download | focaccia-qemu-4b6f74d86c4d4f179643ae2c5f7bbfcf7c1a7725.tar.gz focaccia-qemu-4b6f74d86c4d4f179643ae2c5f7bbfcf7c1a7725.zip | |
target/arm: Handle AArch64 gdb read/write regs in TYPE_ARM_CPU
Instead of having the TYPE_AARCH64_CPU subclass set CPUClass::gdb_read_register and ::gdb_write_register to different methods from those of the TYPE_ARM_CPU parent class, have the TYPE_ARM_CPU methods handle either AArch32 or AArch64 at runtime. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-ID: <20250317142819.900029-6-peter.maydell@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Diffstat (limited to 'target/arm/cpu64.c')
| -rw-r--r-- | target/arm/cpu64.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/target/arm/cpu64.c b/target/arm/cpu64.c index 5135ef63cb..00629a5d1d 100644 --- a/target/arm/cpu64.c +++ b/target/arm/cpu64.c @@ -815,11 +815,6 @@ static void aarch64_cpu_finalizefn(Object *obj) static void aarch64_cpu_class_init(ObjectClass *oc, const void *data) { - CPUClass *cc = CPU_CLASS(oc); - - cc->gdb_read_register = aarch64_cpu_gdb_read_register; - cc->gdb_write_register = aarch64_cpu_gdb_write_register; - object_class_property_add_bool(oc, "aarch64", aarch64_cpu_get_aarch64, aarch64_cpu_set_aarch64); object_class_property_set_description(oc, "aarch64", |