From 9d01d2e86d450f12f275bd64aeb022e8423e220c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Date: Fri, 6 Jun 2025 12:24:41 +0200 Subject: accel: Propagate AccelState to AccelClass::init_machine() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In order to avoid init_machine() to call current_accel(), pass AccelState along. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Reviewed-by: Alex Bennée Reviewed-by: Zhao Liu Message-Id: <20250703173248.44995-31-philmd@linaro.org> --- bsd-user/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bsd-user') diff --git a/bsd-user/main.c b/bsd-user/main.c index 7c0a059..d0cc8e0 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); } /* -- cgit v1.1