diff options
author | Anthony PERARD | 2019-01-16 18:35:27 +0100 |
---|---|---|
committer | Paolo Bonzini | 2019-03-11 16:33:49 +0100 |
commit | b0c214ce4145e35a39362b8a3da88b4908ca7c71 (patch) | |
tree | aed8ac575290aa64cab0552d0fca098d25cd4bc8 /accel | |
parent | build: clean trace/generated-helpers.c (diff) | |
download | qemu-b0c214ce4145e35a39362b8a3da88b4908ca7c71.tar.gz qemu-b0c214ce4145e35a39362b8a3da88b4908ca7c71.tar.xz qemu-b0c214ce4145e35a39362b8a3da88b4908ca7c71.zip |
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>
Diffstat (limited to 'accel')
-rw-r--r-- | accel/accel.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/accel/accel.c b/accel/accel.c index 68b6d56323..0d5b370dfd 100644 --- a/accel/accel.c +++ b/accel/accel.c @@ -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 } } |