51c51
< class PTE;
---
> class TlbEntry;
57c57
< PageTable lookupTable; // Quick lookup into page table
---
> PageTable lookupTable; // Quick lookup into page table
59,61c59,61
< PTE *table; // the Page Table
< int size; // TLB Size
< int nlu; // not last used entry (for replacement)
---
> TlbEntry *table; // the Page Table
> int size; // TLB Size
> int nlu; // not last used entry (for replacement)
64c64
< PTE *lookup(Addr vpn, uint8_t asn);
---
> TlbEntry *lookup(Addr vpn, uint8_t asn);
72,73c72,73
< PTE &index(bool advance = true);
< void insert(Addr vaddr, PTE &pte);
---
> TlbEntry &index(bool advance = true);
> void insert(Addr vaddr, TlbEntry &entry);
93,99c93,96
< PTE *PTECache[3];
< inline void flushCache() { memset(PTECache, 0, 3 * sizeof(PTE*)); }
< inline PTE* updateCache(PTE *pte) {
< PTECache[2] = PTECache[1];
< PTECache[1] = PTECache[0];
< PTECache[0] = pte;
< return pte;
---
> TlbEntry *EntryCache[3];
> inline void flushCache()
> {
> memset(EntryCache, 0, 3 * sizeof(TlbEntry*));
100a98,104
>
> inline TlbEntry* updateCache(TlbEntry *entry) {
> EntryCache[2] = EntryCache[1];
> EntryCache[1] = EntryCache[0];
> EntryCache[0] = entry;
> return entry;
> }