accel: Allow to build QEMU without TCG or KVM support

Instead of deny build of QEMU without a default accelerator, simply
report an error when the user haven't passed -accel or -machine accel=
and TCG and KVM isn't builtin.

./configure already check that at least one accelerator is available.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
master
Anthony PERARD 2019-01-16 17:35:27 +00:00 committed by Paolo Bonzini
parent 74970d35b4
commit b0c214ce41
1 changed files with 3 additions and 1 deletions

View File

@ -91,7 +91,9 @@ void configure_accelerator(MachineState *ms, const char *progname)
#elif defined(CONFIG_KVM)
accel = "kvm";
#else
#error "No default accelerator available"
error_report("No accelerator selected and"
" no default accelerator available");
exit(1);
#endif
}
}