summary refs log tree commit diff stats
path: root/bsd-user/main.c
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 15:22:02 +0200
commit9d01d2e86d450f12f275bd64aeb022e8423e220c (patch)
tree9de9dedccb96378fea73bb72cae12bd601024531 /bsd-user/main.c
parent487b25c9d93add2e0e58275d7c1ef89810fad763 (diff)
downloadfocaccia-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 'bsd-user/main.c')
-rw-r--r--bsd-user/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bsd-user/main.c b/bsd-user/main.c
index 7c0a059c3b..d0cc8e0088 100644
--- a/bsd-user/main.c
+++ b/bsd-user/main.c
@@ -474,7 +474,7 @@ int main(int argc, char **argv)
                                  opt_one_insn_per_tb, &error_abort);
         object_property_set_int(OBJECT(accel), "tb-size",
                                 opt_tb_size, &error_abort);
-        ac->init_machine(NULL);
+        ac->init_machine(accel, NULL);
     }
 
     /*