[4425] CRIS: Add support for the pseudo randomized set that the mmu provides with TLB refill faults .
Revision: 4425
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4425 Author: edgar_igl Date: 2008-05-11 14:28:14 +0000 (Sun, 11 May 2008)
Log Message:
-----------
CRIS: Add support for the pseudo randomized set that the mmu provides with TLB refill faults. This makes linux guests use the four way TLB set associativty.
Modified Paths:
--------------
trunk/target-cris/cpu.h
trunk/target-cris/mmu.c
Modified: trunk/target-cris/cpu.h
===================================================================
target-cris/cpu.h +5 -0
@@ -153,6 +153,11 @@*/ uint32_t sregs[4 ][16 ]; +/* Linear feedback shift reg in the mmu. Used to provide pseudo +randomness for the 'hint' the mmu gives to sw for chosing valid +sets on TLB refills. */ +uint32_t mmu_rand_lfsr; +/* * We just store the stores to the tlbset here for later evaluation * when the hw needs access to them.
Modified: trunk/target-cris/mmu.c
===================================================================
target-cris/mmu.c +36 -13
92 lines not on this page · raw message