Skip to content
Snippets Groups Projects
Commit 3517fb72 authored by Song Gao's avatar Song Gao Committed by Richard Henderson
Browse files

target/loongarch: Clean up tlb when cpu reset


We should make sure that tlb is clean when cpu reset.

Signed-off-by: default avatarSong Gao <gaosong@loongson.cn>
Message-Id: <20220705070950.2364243-1-gaosong@loongson.cn>
Reviewed-by: default avatarRichard Henderson <richard.henderson@linaro.org>
Signed-off-by: default avatarRichard Henderson <richard.henderson@linaro.org>
parent c1ca312a
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment