diff options
| author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-06-06 12:24:41 +0200 |
|---|---|---|
| committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-07-04 15:22:02 +0200 |
| commit | 9d01d2e86d450f12f275bd64aeb022e8423e220c (patch) | |
| tree | 9de9dedccb96378fea73bb72cae12bd601024531 /accel/qtest/qtest.c | |
| parent | 487b25c9d93add2e0e58275d7c1ef89810fad763 (diff) | |
| download | focaccia-qemu-9d01d2e86d450f12f275bd64aeb022e8423e220c.tar.gz focaccia-qemu-9d01d2e86d450f12f275bd64aeb022e8423e220c.zip | |
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> Reviewed-by: Zhao Liu <zhao1.liu@intel.com> Message-Id: <20250703173248.44995-31-philmd@linaro.org>
Diffstat (limited to 'accel/qtest/qtest.c')
| -rw-r--r-- | accel/qtest/qtest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/accel/qtest/qtest.c b/accel/qtest/qtest.c index 5474ce7313..2b83126020 100644 --- a/accel/qtest/qtest.c +++ b/accel/qtest/qtest.c @@ -38,7 +38,7 @@ static void qtest_set_virtual_clock(int64_t count) qatomic_set_i64(&qtest_clock_counter, count); } -static int qtest_init_accel(MachineState *ms) +static int qtest_init_accel(AccelState *as, MachineState *ms) { return 0; } |