From: Emilio G. Cota Date: Tue, 9 Oct 2018 17:45:53 +0000 (-0400) Subject: target/unicore32: remove tlb_flush from uc32_init_fn X-Git-Tag: v3.1.0-rc0~45^2~14 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=022d6378c7fd;p=thirdparty%2Fqemu.git target/unicore32: remove tlb_flush from uc32_init_fn As far as I can tell tlb_flush does not need to be called this early. tlb_flush is eventually called after the CPU has been realized. This change paves the way to the introduction of tlb_init, which will be called from cpu_exec_realizefn. Cc: Guan Xuetao Reviewed-by: Alex Bennée Reviewed-by: Richard Henderson Signed-off-by: Emilio G. Cota Message-Id: <20181009174557.16125-3-cota@braap.org> Signed-off-by: Richard Henderson --- diff --git a/target/unicore32/cpu.c b/target/unicore32/cpu.c index 68f978d80bc..2b49d1ca406 100644 --- a/target/unicore32/cpu.c +++ b/target/unicore32/cpu.c @@ -116,8 +116,6 @@ static void uc32_cpu_initfn(Object *obj) env->uncached_asr = ASR_MODE_PRIV; env->regs[31] = 0x03000000; #endif - - tlb_flush(cs); } static const VMStateDescription vmstate_uc32_cpu = {