From 94561dd5268d139b721561166cbce94170701c2c Mon Sep 17 00:00:00 2001 From: Andreas Sandberg Date: Mon, 7 Jan 2013 13:05:40 -0500 Subject: arch: Add support for invalidating TLBs when draining This patch adds support for the memInvalidate() drain method. TLB flushing is requested by calling the virtual flushAll() method on the TLB. Note: This patch renames invalidateAll() to flushAll() on x86 and SPARC to make the interface consistent across all supported architectures. --- src/arch/sparc/tlb.cc | 2 +- src/arch/sparc/tlb.hh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/arch/sparc') diff --git a/src/arch/sparc/tlb.cc b/src/arch/sparc/tlb.cc index 9faf297d6..5d6dfe2c3 100644 --- a/src/arch/sparc/tlb.cc +++ b/src/arch/sparc/tlb.cc @@ -323,7 +323,7 @@ TLB::demapAll(int partition_id) } void -TLB::invalidateAll() +TLB::flushAll() { cacheValid = false; lookupTable.clear(); diff --git a/src/arch/sparc/tlb.hh b/src/arch/sparc/tlb.hh index abbe2df3c..8ed10ff0e 100644 --- a/src/arch/sparc/tlb.hh +++ b/src/arch/sparc/tlb.hh @@ -123,7 +123,7 @@ class TLB : public BaseTLB uint64_t TagRead(int entry); /** Remove all entries from the TLB */ - void invalidateAll(); + void flushAll(); /** Remove all non-locked entries from the tlb that match partition id. */ void demapAll(int partition_id); -- cgit v1.2.3