#include "sim/system.hh"
SETranslatingPortProxy::SETranslatingPortProxy(
- ThreadContext *tc, AllocType alloc) :
- TranslatingPortProxy(tc), allocating(alloc)
+ ThreadContext *tc, AllocType alloc, Request::Flags _flags) :
+ TranslatingPortProxy(tc, _flags), allocating(alloc)
{}
bool
#include "cpu/thread_context.hh"
#include "sim/system.hh"
-TranslatingPortProxy::TranslatingPortProxy(ThreadContext *tc) :
+TranslatingPortProxy::TranslatingPortProxy(
+ ThreadContext *tc, Request::Flags _flags) :
PortProxy(tc->getCpuPtr()->getSendFunctional(),
tc->getSystemPtr()->cacheLineSize()), _tc(tc),
- pageBytes(tc->getSystemPtr()->getPageBytes())
+ pageBytes(tc->getSystemPtr()->getPageBytes()),
+ flags(_flags)
{}
bool
gen.next())
{
auto req = std::make_shared<Request>(
- gen.addr(), gen.size(), 0, Request::funcMasterId, 0,
+ gen.addr(), gen.size(), flags, Request::funcMasterId, 0,
_tc->contextId());
if (!tryTLBs(req, BaseTLB::Read))
gen.next())
{
auto req = std::make_shared<Request>(
- gen.addr(), gen.size(), 0, Request::funcMasterId, 0,
+ gen.addr(), gen.size(), flags, Request::funcMasterId, 0,
_tc->contextId());
if (!tryTLBs(req, BaseTLB::Write))
gen.next())
{
auto req = std::make_shared<Request>(
- gen.addr(), gen.size(), 0, Request::funcMasterId, 0,
+ gen.addr(), gen.size(), flags, Request::funcMasterId, 0,
_tc->contextId());
if (!tryTLBs(req, BaseTLB::Write))