cpus: Remove CPUClass::init_accel_cpu() left-over hook
Commits f50d0f335a6 and a522b04bb9c ("target/riscv,i386: Remove AccelCPUClass::cpu_class_init need") removed the last uses of the CPUClass::init_accel_cpu hook. Remove it as unused. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20260412212547.29645-1-philmd@linaro.org>
Philippe Mathieu-Daudé committed
Apr 12, 2026 at 23:19 UTC
61522df799eb88c2a152a68e16e69f9a1240c311
2 files changed
-19
accel/accel-common.c
-13
@@ -37,23 +37,10 @@ static void accel_init_cpu_int_aux(ObjectClass *klass, void *opaque)
37
CPUClass *cc = CPU_CLASS(klass);
38
AccelCPUClass *accel_cpu = opaque;
39
40
- /*
41
- * The first callback allows accel-cpu to run initializations
42
- * for the CPU, customizing CPU behavior according to the accelerator.
43
- *
44
- * The second one allows the CPU to customize the accel-cpu
45
- * behavior according to the CPU.
46
- *
47
- * The second is currently only used by TCG, to specialize the
48
- * TCGCPUOps depending on the CPU type.
49
- */
40
cc->accel_cpu = accel_cpu;
41
if (accel_cpu->cpu_class_init) {
42
accel_cpu->cpu_class_init(cc);
43
}
54
- if (cc->init_accel_cpu) {
55
- cc->init_accel_cpu(accel_cpu, cc);
56
- }
44
}
45
46
/* initialize the arch-specific accel CpuClass interfaces */
include/hw/core/cpu.h
-6
@@ -186,12 +186,6 @@ struct CPUClass {
186
/* when TCG is not available, this pointer is NULL */
187
const TCGCPUOps *tcg_ops;
188
189
- /*
190
- * if not NULL, this is called in order for the CPUClass to initialize
191
- * class data that depends on the accelerator, see accel/accel-common.c.
192
- */
193
- void (*init_accel_cpu)(struct AccelCPUClass *accel_cpu, CPUClass *cc);
194
-
189
/*
190
* Keep non-pointer data at the end to minimize holes.
191
*/