mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
accel: pass object to accel_init_machine
We will have to set QOM properties before accel_init_machine, based on the options provided to -accel. Construct the object outside it so that it will be possible to iterate on properties between object_new_with_class and accel_init_machine. Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
@@ -67,7 +67,7 @@ typedef struct AccelClass {
|
||||
extern unsigned long tcg_tb_size;
|
||||
|
||||
AccelClass *accel_find(const char *opt_name);
|
||||
int accel_init_machine(AccelClass *acc, MachineState *ms);
|
||||
int accel_init_machine(AccelState *accel, MachineState *ms);
|
||||
|
||||
/* Called just before os_setup_post (ie just before drop OS privs) */
|
||||
void accel_setup_post(MachineState *ms);
|
||||
|
||||
Reference in New Issue
Block a user