diff mbox series

[PATCH-for-10.1,v4,03/16] accel: Remove AccelCPUClass::cpu_class_init() callback

Message ID 20250405161320.76854-4-philmd@linaro.org
State New
Headers show
Series tcg: philmd's queue | expand

Commit Message

Philippe Mathieu-Daudé April 5, 2025, 4:13 p.m. UTC
No more target defines the AccelCPUClass::cpu_class_init()
callback anymore, remove it.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
 include/accel/accel-cpu-target.h | 1 -
 accel/accel-target.c             | 3 ---
 2 files changed, 4 deletions(-)
diff mbox series

Patch

diff --git a/include/accel/accel-cpu-target.h b/include/accel/accel-cpu-target.h
index 37dde7fae3e..e983fa1dac3 100644
--- a/include/accel/accel-cpu-target.h
+++ b/include/accel/accel-cpu-target.h
@@ -33,7 +33,6 @@  typedef struct AccelCPUClass {
     ObjectClass parent_class;
     /*< public >*/
 
-    void (*cpu_class_init)(CPUClass *cc);
     void (*cpu_instance_init)(CPUState *cpu);
     bool (*cpu_target_realize)(CPUState *cpu, Error **errp);
 } AccelCPUClass;
diff --git a/accel/accel-target.c b/accel/accel-target.c
index 33a539b4cbb..a45a7317758 100644
--- a/accel/accel-target.c
+++ b/accel/accel-target.c
@@ -74,9 +74,6 @@  static void accel_init_cpu_int_aux(ObjectClass *klass, void *opaque)
      * TCGCPUOps depending on the CPU type.
      */
     cc->accel_cpu = accel_cpu;
-    if (accel_cpu->cpu_class_init) {
-        accel_cpu->cpu_class_init(cc);
-    }
     if (cc->init_accel_cpu) {
         cc->init_accel_cpu(accel_cpu, cc);
     }