accel/tcg: use current_machine as it is always set for softmmu
commit20b0a9f4f6bbe41aaadf6681c16ac73d289203e1
authorClaudio Fontana <cfontana@suse.de>
Tue, 8 Sep 2020 08:59:07 +0000 (8 10:59 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 5 Oct 2020 14:41:22 +0000 (5 16:41 +0200)
treed0e554cf1a5c67d6bb2ff07e7512b530e7b7a146
parentd0a92b353efa2ca3c2847ad38f088b16d1278290
accel/tcg: use current_machine as it is always set for softmmu

current_machine is always set before accelerators are initialized,
so use that instead of MACHINE(qdev_get_machine()).

Signed-off-by: Claudio Fontana <cfontana@suse.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
accel/tcg/tcg-cpus.c