Skip to content

Commit

Permalink
accel/tcg: Inline cpu_gen_init
Browse files Browse the repository at this point in the history
It consists of one function call and has only one caller.

Reviewed-by: Luis Pires <luis.pires@eldorado.org.br>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
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 5ff7258 commit 324b9d4
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions accel/tcg/translate-all.c
Expand Up @@ -245,11 +245,6 @@ static void page_table_config_init(void)
assert(v_l2_levels >= 0);
}

static void cpu_gen_init(void)
{
tcg_context_init(&tcg_init_ctx);
}

/* Encode VAL as a signed leb128 sequence at P.
Return P incremented past the encoded value. */
static uint8_t *encode_sleb128(uint8_t *p, target_long val)
Expand Down Expand Up @@ -1331,7 +1326,7 @@ void tcg_exec_init(unsigned long tb_size, int splitwx)
bool ok;

tcg_allowed = true;
cpu_gen_init();
tcg_context_init(&tcg_init_ctx);
page_init();
tb_htable_init();

Expand Down

0 comments on commit 324b9d4

Please sign in to comment.