Skip to contentSkip to conversation

[6947] target-ppc: Explain why the whole TLB is flushed on SR write

Qemu-devel Aurelien Jarno 1 participant 1 message Mar 29, 2009

lore
Share & tools
lore
#0 lore raw

Revision: 6947

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6947
Author:   aurel32
Date:     2009-03-29 13:36:32 +0000 (Sun, 29 Mar 2009)

Log Message:
-----------
target-ppc: Explain why the whole TLB is flushed on SR write

Modified Paths:
--------------
trunk/target-ppc/helper.c

Modified: trunk/target-ppc/helper.c
===================================================================

target-ppc/helper.c +2 -0
@@ -2009,6 +2009,8 @@
 #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;