mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
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:
parent
ce7cdebdb5
commit
4f7f589381
7 changed files with 10 additions and 11 deletions
2
vl.c
2
vl.c
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue