aboutsummaryrefslogtreecommitdiff
path: root/target-cris/cpu.h
diff options
context:
space:
mode:
authoredgar_igl <edgar_igl@c046a42c-6fe2-441c-8c8c-71466251a162>2008-05-11 14:28:14 +0000
committeredgar_igl <edgar_igl@c046a42c-6fe2-441c-8c8c-71466251a162>2008-05-11 14:28:14 +0000
commit44cd42ee4082813cc4b45117bbb6156920957e47 (patch)
tree631debf76b3fa1205ad50ef1e4ae268ce236de84 /target-cris/cpu.h
parent868314358ea3f3009fb72d2867dc73af54338ae7 (diff)
downloadqemu-44cd42ee4082813cc4b45117bbb6156920957e47.zip
qemu-44cd42ee4082813cc4b45117bbb6156920957e47.tar.gz
qemu-44cd42ee4082813cc4b45117bbb6156920957e47.tar.bz2
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.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4425 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-cris/cpu.h')
-rw-r--r--target-cris/cpu.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/target-cris/cpu.h b/target-cris/cpu.h
index 49de830..845926d 100644
--- a/target-cris/cpu.h
+++ b/target-cris/cpu.h
@@ -153,6 +153,11 @@ typedef struct CPUCRISState {
*/
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.