From f6a1ef64408a5f7f52601589fef2a850b93d817e Mon Sep 17 00:00:00 2001 From: Eduardo Habkost Date: Fri, 26 Sep 2014 17:45:30 -0300 Subject: accel: Pass MachineState object to accel init functions Most of the machine options and machine state information is in the MachineState object, not on the MachineClass. This will allow init functions to use the MachineState object directly instead of qemu_get_machine_opts() or the current_machine global. Reviewed-by: Paolo Bonzini Signed-off-by: Eduardo Habkost Signed-off-by: Paolo Bonzini --- qtest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qtest.c') diff --git a/qtest.c b/qtest.c index 18e26fc41f..4b85995de0 100644 --- a/qtest.c +++ b/qtest.c @@ -520,7 +520,7 @@ static void configure_qtest_icount(const char *options) qemu_opts_del(opts); } -static int qtest_init_accel(MachineClass *mc) +static int qtest_init_accel(MachineState *ms) { configure_qtest_icount("0"); return 0; -- cgit v1.2.1