diff options
author | Ali Saidi <saidi@eecs.umich.edu> | 2006-12-27 14:38:22 -0500 |
---|---|---|
committer | Ali Saidi <saidi@eecs.umich.edu> | 2006-12-27 14:38:22 -0500 |
commit | b48a8fb34706972c7474f2390029ec9f5b8c94f3 (patch) | |
tree | 42dbdef8c3fb07333d0c39284c60ff2b54b7c022 /src/arch/sparc/tlb.hh | |
parent | 9e90bfafb5b464dacc983c1c513f264d538bd9fd (diff) | |
parent | ba14d6d0e1debea686681e5738bcdb041522dca0 (diff) | |
download | gem5-b48a8fb34706972c7474f2390029ec9f5b8c94f3.tar.xz |
Merge zizzer:/bk/newmem
into zeep.pool:/z/saidi/work/m5.newmem
--HG--
extra : convert_revision : afd4266bd494bb8f127c06985f343219ded4f637
Diffstat (limited to 'src/arch/sparc/tlb.hh')
-rw-r--r-- | src/arch/sparc/tlb.hh | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/arch/sparc/tlb.hh b/src/arch/sparc/tlb.hh index a6e6a8bd3..34e5f5feb 100644 --- a/src/arch/sparc/tlb.hh +++ b/src/arch/sparc/tlb.hh @@ -54,10 +54,13 @@ class TLB : public SimObject int size; int usedEntries; + int lastReplaced; uint64_t cacheState; bool cacheValid; + std::list<TlbEntry*> freeList; + enum FaultTypes { OtherFault = 0, PrivViolation = 0x1, @@ -93,9 +96,6 @@ class TLB : public SimObject /** Given an entry id, read that tlb entries' tag. */ uint64_t TagRead(int entry); - /** Give an entry id, read that tlb entries' tte */ - uint64_t TteRead(int entry); - /** Remove all entries from the TLB */ void invalidateAll(); @@ -128,6 +128,10 @@ class TLB : public SimObject // Checkpointing virtual void serialize(std::ostream &os); virtual void unserialize(Checkpoint *cp, const std::string §ion); + + /** Give an entry id, read that tlb entries' tte */ + uint64_t TteRead(int entry); + }; class ITB : public TLB |