summaryrefslogtreecommitdiff
path: root/src/arch/arm/tlb.hh
diff options
context:
space:
mode:
authorAli Saidi <Ali.Saidi@ARM.com>2010-10-01 16:04:04 -0500
committerAli Saidi <Ali.Saidi@ARM.com>2010-10-01 16:04:04 -0500
commitdcaa0668ae2c243158fbc886e81e6a6b0e451c83 (patch)
tree1d43518c50c4b9af500563aabae948ef7f937d13 /src/arch/arm/tlb.hh
parentf0c0b8a7f613758cc99af827cfc0bb7d4587131e (diff)
downloadgem5-dcaa0668ae2c243158fbc886e81e6a6b0e451c83.tar.xz
ARM: Make the TLB a little bit faster by moving most recently used items to front of list
Diffstat (limited to 'src/arch/arm/tlb.hh')
-rw-r--r--src/arch/arm/tlb.hh3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/arch/arm/tlb.hh b/src/arch/arm/tlb.hh
index caccad873..2d3661f7d 100644
--- a/src/arch/arm/tlb.hh
+++ b/src/arch/arm/tlb.hh
@@ -88,7 +88,6 @@ class TLB : public BaseTLB
TlbEntry *table; // the Page Table
int size; // TLB Size
- int nlu; // not last used entry (for replacement)
uint32_t _attr; // Memory attributes for last accessed TLB entry
@@ -96,7 +95,6 @@ class TLB : public BaseTLB
TableWalker *tableWalker;
#endif
- void nextnlu() { if (++nlu >= size) nlu = 0; }
/** Lookup an entry in the TLB
* @param vpn virtual address
* @param asn context id/address space id to use
@@ -118,6 +116,7 @@ class TLB : public BaseTLB
Stats::Formula misses;
Stats::Formula accesses;
+ int rangeMRU; //On lookup, only move entries ahead when outside rangeMRU
public:
typedef ArmTLBParams Params;