From bf1752ef58cd9bd83d21d434f24197c6650bbd9e Mon Sep 17 00:00:00 2001 From: aurel32 Date: Sun, 29 Mar 2009 13:36:32 +0000 Subject: [PATCH] target-ppc: Explain why the whole TLB is flushed on SR write Signed-off-by: Aurelien Jarno git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6947 c046a42c-6fe2-441c-8c8c-71466251a162 --- target-ppc/helper.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/target-ppc/helper.c b/target-ppc/helper.c index 80b53ebcba..a0d884ee1e 100644 --- a/target-ppc/helper.c +++ b/target-ppc/helper.c @@ -2009,6 +2009,8 @@ void ppc_store_sr (CPUPPCState *env, int srnum, target_ulong value) #endif if (env->sr[srnum] != value) { env->sr[srnum] = value; +/* Invalidating 256MB of virtual memory in 4kB pages is way longer than + flusing the whole TLB. */ #if !defined(FLUSH_ALL_TLBS) && 0 { target_ulong page, end;