softmmu/vl.c: fix too slow TCG regression
commit2a7b18a3205bdc18403dfa48b9746fbafeac14a0
authorIgor Mammedov <imammedo@redhat.com>
Thu, 27 Feb 2020 16:14:54 +0000 (27 11:14 -0500)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 27 Feb 2020 17:11:20 +0000 (27 17:11 +0000)
treec16de0c685e7e081a996cff2cd231370d4f6d8d9
parentdb736e0437aa6fd7c1b7e4599c17f9619ab6b837
softmmu/vl.c: fix too slow TCG regression

Commit a1b18df9a4 moved -m option parsing after configure_accelerators()
that broke TCG accelerator initialization which accesses global ram_size
from size_code_gen_buffer() which is equal to 0 at that moment.

Partially revert a1b18df9a4, by returning set_memory_options() to its
original location and only keep 32-bit host VA check and 'memory-backend'
size check introduced by fe64d06afc at current place.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
softmmu/vl.c