From 55ff318b4e5382074e2049c996cb6df1041aff1b Mon Sep 17 00:00:00 2001 From: Chris Dearman Date: Fri, 3 Aug 2012 14:35:52 -0700 Subject: [MIPS] Speed up software refill handler Emulating each instruction of the software refill handler has a significant impact on the overall performance of QEMU because of the overhead of emulating the various CP0 instructions to accurately reflect the machine state. Running the software TLB handler takes the equivalent of 1000's of machine cycles. This patch implements a pseudo hardware TLB refill handler that significantly reduces the impact of refilling the TLB to bring it more inline with what would be observed on a real target. Signed-off-by: Steven Hill Signed-off-by: Chris Dearman Signed-off-by: Yajin --- target-mips/translate.c | 1 - 1 file changed, 1 deletion(-) (limited to 'target-mips/translate.c') diff --git a/target-mips/translate.c b/target-mips/translate.c index 853aafd..27a8df7 100644 --- a/target-mips/translate.c +++ b/target-mips/translate.c @@ -8675,7 +8675,6 @@ void cpu_reset (CPUMIPSState *env) } env->active_tc.PC = (int32_t)0xBFC00000; env->CP0_Random = env->tlb->nb_tlb - 1; - env->tlb->tlb_in_use = env->tlb->nb_tlb; env->CP0_Wired = 0; /* SMP not implemented */ env->CP0_EBase = 0x80000000; -- cgit v1.1