target/loongarch: Clean up tlb when cpu reset
We should make sure that tlb is clean when cpu reset. Signed-off-by: Song Gao <gaosong@loongson.cn> Message-Id: <20220705070950.2364243-1-gaosong@loongson.cn> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
c1ca312a6f
commit
3517fb7267
@ -479,6 +479,7 @@ static void loongarch_cpu_reset(DeviceState *dev)
|
||||
|
||||
#ifndef CONFIG_USER_ONLY
|
||||
env->pc = 0x1c000000;
|
||||
memset(env->tlb, 0, sizeof(env->tlb));
|
||||
#endif
|
||||
|
||||
restore_fp_status(env);
|
||||
|
Loading…
Reference in New Issue
Block a user