Skip to content

Commit

Permalink
accel/tcg: Use MiB in tcg_init_machine
Browse files Browse the repository at this point in the history
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Luis Pires <luis.pires@eldorado.org.br>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
  • Loading branch information
rth7680 committed Jun 11, 2021
1 parent fa79cde commit efba8ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion accel/tcg/tcg-all.c
Expand Up @@ -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 {
Expand Down Expand Up @@ -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)
/*
Expand Down

0 comments on commit efba8ae

Please sign in to comment.