+ class Walker;
+
+ static const unsigned StoreCheck = 1 << NUM_SEGMENTREGS;
+
+ class TLB;
+
+ class TLB : public BaseTLB
+ {
+ protected:
+ friend class FakeITLBFault;
+ friend class FakeDTLBFault;
+
+ typedef std::list<TlbEntry *> EntryList;
+
+ bool _allowNX;
+ uint32_t configAddress;
+
+ public:
+ bool allowNX() const
+ {
+ return _allowNX;
+ }
+
+ typedef X86TLBParams Params;
+ TLB(const Params *p);
+
+ void dumpAll();
+
+ TlbEntry *lookup(Addr va, bool update_lru = true);
+
+ void setConfigAddress(uint32_t addr);
+
+ protected:
+
+ EntryList::iterator lookupIt(Addr va, bool update_lru = true);
+
+#if FULL_SYSTEM
+ protected:
+
+ Walker * walker;
+
+ void walk(ThreadContext * _tc, Addr vaddr);
+#endif
+
+ public:
+ void invalidateAll();
+
+ void invalidateNonGlobal();
+
+ void demapPage(Addr va, uint64_t asn);
+
+ protected:
+ int size;
+
+ TlbEntry * tlb;
+
+ EntryList freeList;
+ EntryList entryList;
+
+ template<class TlbFault>
+ Fault translate(RequestPtr &req, ThreadContext *tc,
+ bool write, bool execute);
+
+ public:
+
+ void insert(Addr vpn, TlbEntry &entry);
+
+ // Checkpointing
+ virtual void serialize(std::ostream &os);
+ virtual void unserialize(Checkpoint *cp, const std::string §ion);
+ };
+
+ class ITB : public TLB