accel: Replace current_machine->accelerator by current_accel() wrapper

We actually want to access the accelerator, not the machine, so
use the current_accel() wrapper instead.

Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20200121110349.25842-10-philmd@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
Philippe Mathieu-Daudé 2020-01-21 12:03:48 +01:00 committed by Paolo Bonzini
parent ce7cdebdb5
commit 4f7f589381
7 changed files with 10 additions and 11 deletions

2
vl.c
View file

@ -2824,7 +2824,7 @@ static void configure_accelerators(const char *progname)
}
if (init_failed) {
AccelClass *ac = ACCEL_GET_CLASS(current_machine->accelerator);
AccelClass *ac = ACCEL_GET_CLASS(current_accel());
error_report("falling back to %s", ac->name);
}