summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2006-11-10 15:32:15 -0500
committerGabe Black <gblack@eecs.umich.edu>2006-11-10 15:32:15 -0500
commit6d54a77518664bc9064211fcf85958b7e2caa9cc (patch)
tree5c3eef68c1d4f9ebaf26f74de40eb6b6f1bcd8b6 /src/arch
parente3d88318574e7b77175e7d31e1f932f3866261a1 (diff)
downloadgem5-6d54a77518664bc9064211fcf85958b7e2caa9cc.tar.xz
Elaborated on the tlb stubs so that they just set the physical address to the virtual address.
--HG-- extra : convert_revision : 41478abc4d21d504420f6842338675c0767f7cf9
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/sparc/tlb.hh7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/arch/sparc/tlb.hh b/src/arch/sparc/tlb.hh
index 0fdba6baf..7a9a6aea1 100644
--- a/src/arch/sparc/tlb.hh
+++ b/src/arch/sparc/tlb.hh
@@ -31,6 +31,7 @@
#ifndef __ARCH_SPARC_TLB_HH__
#define __ARCH_SPARC_TLB_HH__
+#include "base/misc.hh"
#include "mem/request.hh"
#include "sim/faults.hh"
#include "sim/sim_object.hh"
@@ -56,6 +57,9 @@ namespace SparcISA
Fault translate(RequestPtr &req, ThreadContext *tc) const
{
+ //For now, always assume the address is already physical.
+ //Also assume that there are 40 bits of physical address space.
+ req->setPaddr(req->getVaddr() & ((1ULL << 40) - 1));
return NoFault;
}
};
@@ -69,6 +73,9 @@ namespace SparcISA
Fault translate(RequestPtr &req, ThreadContext *tc, bool write) const
{
+ //For now, always assume the address is already physical.
+ //Also assume that there are 40 bits of physical address space.
+ req->setPaddr(req->getVaddr() & ((1ULL << 40) - 1));
return NoFault;
}
};