ARM: Implement WFE/WFI/SEV semantics.
[gem5.git] / src / sim / tlb.cc
index 5ceec637e2582c6b0506b4c454849f8ba93b5a67..8cde0db2e7b540b748d11c010b2c128c97f142e0 100644 (file)
 
 #include "cpu/thread_context.hh"
 #include "mem/page_table.hh"
+#include "sim/faults.hh"
 #include "sim/process.hh"
 #include "sim/tlb.hh"
 
 Fault
-GenericTLBBase::translate(RequestPtr req, ThreadContext * tc)
+GenericTLB::translateAtomic(RequestPtr req, ThreadContext *tc, Mode)
 {
 #if FULL_SYSTEM
         panic("Generic translation shouldn't be used in full system mode.\n");
@@ -48,3 +49,17 @@ GenericTLBBase::translate(RequestPtr req, ThreadContext * tc)
         return NoFault;
 #endif
 }
+
+void
+GenericTLB::translateTiming(RequestPtr req, ThreadContext *tc,
+        Translation *translation, Mode mode)
+{
+    assert(translation);
+    translation->finish(translateAtomic(req, tc, mode), req, tc, mode);
+}
+
+void
+GenericTLB::demapPage(Addr vaddr, uint64_t asn)
+{
+    warn("Demapping pages in the generic TLB is unnecessary.\n");
+}