[6161] CRIS: Dont flush kernel protected pages when modifying $pid.
Revision: 6161
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6161 Author: edgar_igl Date: 2009-01-04 15:45:17 +0000 (Sun, 04 Jan 2009)
Log Message:
-----------
CRIS: Dont flush kernel protected pages when modifying $pid.
Signed-off-by Edgar E. Iglesias <[email protected]>
Modified Paths:
--------------
trunk/target-cris/mmu.c
Modified: trunk/target-cris/mmu.c
===================================================================
target-cris/mmu.c +2 -5
@@ -295,7 +295,7 @@unsigned int idx;uint32_t lo, hi;uint32_t tlb_vpn; -int tlb_pid, tlb_g, tlb_v, tlb_k; +int tlb_pid, tlb_g, tlb_v;unsigned int set;unsigned int mmu;
@@ -311,11 +311,8 @@ tlb_pid =EXTRACT_FIELD (hi,0 ,7 ); tlb_g =EXTRACT_FIELD (lo,4 ,4 ); tlb_v =EXTRACT_FIELD (lo,3 ,3 ); - tlb_k =EXTRACT_FIELD (lo,2 ,2 ); -/* Kernel protected areas need to be flushed -as well. */ -if (tlb_v && !tlb_g && (tlb_pid == pid || tlb_k)) { +if (tlb_v && !tlb_g && (tlb_pid == pid)) { vaddr = tlb_vpn <<TARGET_PAGE_BITS ; D(fprintf(logfile, "flush pid=%x vaddr=%x\n",