Elaborated on the tlb stubs so that they just set the physical address to the virtual address.
--HG-- extra : convert_revision : 41478abc4d21d504420f6842338675c0767f7cf9
This commit is contained in:
parent
e3d8831857
commit
6d54a77518
1 changed files with 7 additions and 0 deletions
|
@ -31,6 +31,7 @@
|
||||||
#ifndef __ARCH_SPARC_TLB_HH__
|
#ifndef __ARCH_SPARC_TLB_HH__
|
||||||
#define __ARCH_SPARC_TLB_HH__
|
#define __ARCH_SPARC_TLB_HH__
|
||||||
|
|
||||||
|
#include "base/misc.hh"
|
||||||
#include "mem/request.hh"
|
#include "mem/request.hh"
|
||||||
#include "sim/faults.hh"
|
#include "sim/faults.hh"
|
||||||
#include "sim/sim_object.hh"
|
#include "sim/sim_object.hh"
|
||||||
|
@ -56,6 +57,9 @@ namespace SparcISA
|
||||||
|
|
||||||
Fault translate(RequestPtr &req, ThreadContext *tc) const
|
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;
|
return NoFault;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -69,6 +73,9 @@ namespace SparcISA
|
||||||
|
|
||||||
Fault translate(RequestPtr &req, ThreadContext *tc, bool write) const
|
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;
|
return NoFault;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue