提交 8ab10266 编写于 作者: R Richard Henderson

cputlb: Remove tcg_enabled hack from tlb_flush_nocheck

The bugs this was working around were fixed with commits
022d6378  target/unicore32: remove tlb_flush from uc32_init_fn
6e11beec  target/alpha: remove tlb_flush from alpha_cpu_initfn
Tested-by: NEmilio G. Cota <cota@braap.org>
Reviewed-by: NEmilio G. Cota <cota@braap.org>
Signed-off-by: NRichard Henderson <richard.henderson@linaro.org>
上级 53d28455
...@@ -122,13 +122,6 @@ static void tlb_flush_nocheck(CPUState *cpu) ...@@ -122,13 +122,6 @@ static void tlb_flush_nocheck(CPUState *cpu)
{ {
CPUArchState *env = cpu->env_ptr; CPUArchState *env = cpu->env_ptr;
/* The QOM tests will trigger tlb_flushes without setting up TCG
* so we bug out here in that case.
*/
if (!tcg_enabled()) {
return;
}
assert_cpu_is_self(cpu); assert_cpu_is_self(cpu);
atomic_set(&env->tlb_flush_count, env->tlb_flush_count + 1); atomic_set(&env->tlb_flush_count, env->tlb_flush_count + 1);
tlb_debug("(count: %zu)\n", tlb_flush_count()); tlb_debug("(count: %zu)\n", tlb_flush_count());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册