diff options
author | Emilio G. Cota | 2017-07-09 09:49:53 +0200 |
---|---|---|
committer | Paolo Bonzini | 2017-07-14 12:04:42 +0200 |
commit | f940488feaca394ccc68e0595b4c3a9017f16e45 (patch) | |
tree | 23e13c4e50777a19e43febd087894c543ea23af1 /hw/display/virtio-vga.c | |
parent | nbd: Implement NBD_INFO_BLOCK_SIZE on client (diff) | |
download | qemu-f940488feaca394ccc68e0595b4c3a9017f16e45.tar.gz qemu-f940488feaca394ccc68e0595b4c3a9017f16e45.tar.xz qemu-f940488feaca394ccc68e0595b4c3a9017f16e45.zip |
vl: fix breakage of -tb-size
Commit e7b161d573 ("vl: add tcg_enabled() for tcg related code") adds
a check to exit the program when !tcg_enabled() while parsing the -tb-size
flag.
It turns out that when the -tb-size flag is evaluated, tcg_enabled() can
only return 0, since it is set (or not) much later by configure_accelerator().
Fix it by unconditionally exiting if the flag is passed to a QEMU binary
built with !CONFIG_TCG.
Signed-off-by: Emilio G. Cota <cota@braap.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/display/virtio-vga.c')
0 files changed, 0 insertions, 0 deletions