From: Richard Henderson Date: Thu, 3 Jun 2021 20:32:11 +0000 (-0700) Subject: accel/tcg: Use MiB in tcg_init_machine X-Git-Tag: v6.1.0-rc0~77^2~21 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=efba8ae9f6f4df011b0441ae2b634be6152026a4;p=thirdparty%2Fqemu.git accel/tcg: Use MiB in tcg_init_machine Reviewed-by: Alex Bennée Reviewed-by: Luis Pires Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- diff --git a/accel/tcg/tcg-all.c b/accel/tcg/tcg-all.c index e990180c4bb..1ee89902c35 100644 --- a/accel/tcg/tcg-all.c +++ b/accel/tcg/tcg-all.c @@ -32,6 +32,7 @@ #include "qemu/error-report.h" #include "qemu/accel.h" #include "qapi/qapi-builtin-visit.h" +#include "qemu/units.h" #include "internal.h" struct TCGState { @@ -115,7 +116,7 @@ static int tcg_init_machine(MachineState *ms) page_init(); tb_htable_init(); - tcg_init(s->tb_size * 1024 * 1024, s->splitwx_enabled); + tcg_init(s->tb_size * MiB, s->splitwx_enabled); #if defined(CONFIG_SOFTMMU) /*