// Set up a functional memory Request to pass to the TLB
// to get it to translate the vaddr to a paddr
auto req = std::make_shared<Request>(0, addr, 64, 0x40, -1, 0, 0);
- ArmISA::TLB *tlb;
+ BaseTLB *tlb;
// Check the TLBs for a translation
// It's possible that there is a valid translation in the tlb
//
// Calling translateFunctional invokes a table-walk if required
// so we should always succeed
- tlb = static_cast<ArmISA::TLB*>(tc->getDTBPtr());
- fault = tlb->translateFunctional(req, tc, BaseTLB::Read, TLB::NormalTran);
+ tlb = tc->getDTBPtr();
+ fault = tlb->translateFunctional(req, tc, BaseTLB::Read);
if (fault == NoFault)
return std::make_pair(true, req->getPaddr());
- tlb = static_cast<ArmISA::TLB*>(tc->getITBPtr());
- fault = tlb->translateFunctional(req, tc, BaseTLB::Read, TLB::NormalTran);
+ tlb = tc->getITBPtr();
+ fault = tlb->translateFunctional(req, tc, BaseTLB::Read);
if (fault == NoFault)
return std::make_pair(true, req->getPaddr());