aboutsummaryrefslogtreecommitdiff
path: root/accel/accel.c
diff options
context:
space:
mode:
Diffstat (limited to 'accel/accel.c')
-rw-r--r--accel/accel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/accel/accel.c b/accel/accel.c
index dd38a468af..1c5c3a6abb 100644
--- a/accel/accel.c
+++ b/accel/accel.c
@@ -46,9 +46,9 @@ AccelClass *accel_find(const char *opt_name)
return ac;
}
-int accel_init_machine(AccelClass *acc, MachineState *ms)
+int accel_init_machine(AccelState *accel, MachineState *ms)
{
- AccelState *accel = ACCEL(object_new_with_class(OBJECT_CLASS(acc)));
+ AccelClass *acc = ACCEL_GET_CLASS(accel);
int ret;
ms->accelerator = accel;
*(acc->allowed) = true;