From 7846f59d0dcb36c13e06a3ba8a4c461e646582b6 Mon Sep 17 00:00:00 2001 From: Andreas Sandberg Date: Mon, 3 Jun 2013 13:55:41 +0200 Subject: arch: Create a method to finalize physical addresses in the TLB Some architectures (currently only x86) require some fixing-up of physical addresses after a normal address translation. This is usually to remap devices such as the APIC, but could be used for other memory mapped devices as well. When running the CPU in a using hardware virtualization, we still need to do these address fix-ups before inserting the request into the memory system. This patch moves this patch allows that code to be used by such CPUs without doing full address translations. --- src/sim/tlb.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/sim/tlb.cc') diff --git a/src/sim/tlb.cc b/src/sim/tlb.cc index 86428f168..00a51dbe3 100644 --- a/src/sim/tlb.cc +++ b/src/sim/tlb.cc @@ -58,6 +58,12 @@ GenericTLB::translateTiming(RequestPtr req, ThreadContext *tc, translation->finish(translateAtomic(req, tc, mode), req, tc, mode); } +Fault +GenericTLB::finalizePhysical(RequestPtr req, ThreadContext *tc, Mode mode) const +{ + return NoFault; +} + void GenericTLB::demapPage(Addr vaddr, uint64_t asn) { -- cgit v1.2.3