From 98d2ca403e859f289e6d637a2179e62728370d5f Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Tue, 26 Feb 2008 23:39:22 -0500 Subject: X86: Implement the INVLPG instruction and the TIA microop. --HG-- extra : convert_revision : 31db1ee082f6c3ca5443cba1eb335e408661ead2 --- src/arch/x86/tlb.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/arch/x86/tlb.cc') diff --git a/src/arch/x86/tlb.cc b/src/arch/x86/tlb.cc index 208dec177..ae8fcf9be 100644 --- a/src/arch/x86/tlb.cc +++ b/src/arch/x86/tlb.cc @@ -171,6 +171,11 @@ TLB::invalidateNonGlobal() void TLB::demapPage(Addr va, uint64_t asn) { + EntryList::iterator entry = lookupIt(va, false); + if (entry != entryList.end()) { + freeList.push_back(*entry); + entryList.erase(entry); + } } template -- cgit v1.2.3