vl: fix breakage of -tb-size
commitf940488feaca394ccc68e0595b4c3a9017f16e45
authorEmilio G. Cota <cota@braap.org>
Sun, 9 Jul 2017 07:49:53 +0000 (9 03:49 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 14 Jul 2017 10:04:42 +0000 (14 12:04 +0200)
tree23e13c4e50777a19e43febd087894c543ea23af1
parent081dd1fe36f0ccc04130d1edd136c787c5f8cc50
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>
vl.c