]> git.proxmox.com Git - mirror_qemu.git/commitdiff
target/unicore32: remove tlb_flush from uc32_init_fn
authorEmilio G. Cota <cota@braap.org>
Tue, 9 Oct 2018 17:45:53 +0000 (13:45 -0400)
committerRichard Henderson <richard.henderson@linaro.org>
Fri, 19 Oct 2018 01:58:10 +0000 (18:58 -0700)
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 <gxt@mprc.pku.edu.cn>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Emilio G. Cota <cota@braap.org>
Message-Id: <20181009174557.16125-3-cota@braap.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
target/unicore32/cpu.c

index 68f978d80bccf23c8dfdc5c4c91415f46d0bf3c6..2b49d1ca406adbf31c0af42650ba92d2150e5de4 100644 (file)
@@ -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 = {