aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2025-06-06 12:24:41 +0200
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2025-07-04 12:08:44 +0200
commit51e189619992a08d529bf580f6bcf074f5a7af0d (patch)
tree4bb645e53b0ff87fbdf3802ed7ff5894ca92e797 /include
parent38623a9f63395cecdd4138a305e1187e10964990 (diff)
downloadqemu-51e189619992a08d529bf580f6bcf074f5a7af0d.zip
qemu-51e189619992a08d529bf580f6bcf074f5a7af0d.tar.gz
qemu-51e189619992a08d529bf580f6bcf074f5a7af0d.tar.bz2
accel: Propagate AccelState to AccelClass::init_machine()
In order to avoid init_machine() to call current_accel(), pass AccelState along. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20250703173248.44995-31-philmd@linaro.org>
Diffstat (limited to 'include')
-rw-r--r--include/qemu/accel.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/qemu/accel.h b/include/qemu/accel.h
index 9dea314..b9a9b35 100644
--- a/include/qemu/accel.h
+++ b/include/qemu/accel.h
@@ -40,7 +40,7 @@ typedef struct AccelClass {
/* Cached by accel_init_ops_interfaces() when created */
AccelOpsClass *ops;
- int (*init_machine)(MachineState *ms);
+ int (*init_machine)(AccelState *as, MachineState *ms);
bool (*cpu_common_realize)(CPUState *cpu, Error **errp);
void (*cpu_common_unrealize)(CPUState *cpu);