arm: Identify table-walker requests

This patch ensures all page-table walks are flagged as such.
This commit is contained in:
Andreas Hansson 2015-05-15 13:40:01 -04:00
parent bd583d00f9
commit 99d3fa5945

View file

@ -525,9 +525,9 @@ TableWalker::processWalk()
return f; return f;
} }
Request::Flags flag = 0; Request::Flags flag = Request::PT_WALK;
if (currState->sctlr.c == 0) { if (currState->sctlr.c == 0) {
flag = Request::UNCACHEABLE; flag.set(Request::UNCACHEABLE);
} }
bool delayed; bool delayed;
@ -553,7 +553,7 @@ TableWalker::processWalkLPAE()
statWalkWaitTime.sample(curTick() - currState->startTime); statWalkWaitTime.sample(curTick() - currState->startTime);
Request::Flags flag = 0; Request::Flags flag = Request::PT_WALK;
if (currState->isSecure) if (currState->isSecure)
flag.set(Request::SECURE); flag.set(Request::SECURE);
@ -689,7 +689,7 @@ TableWalker::processWalkLPAE()
} }
if (currState->sctlr.c == 0) { if (currState->sctlr.c == 0) {
flag = Request::UNCACHEABLE; flag.set(Request::UNCACHEABLE);
} }
if (currState->isSecure) if (currState->isSecure)
@ -936,9 +936,9 @@ TableWalker::processWalkAArch64()
return f; return f;
} }
Request::Flags flag = 0; Request::Flags flag = Request::PT_WALK;
if (currState->sctlr.c == 0) { if (currState->sctlr.c == 0) {
flag = Request::UNCACHEABLE; flag.set(Request::UNCACHEABLE);
} }
currState->longDesc.lookupLevel = start_lookup_level; currState->longDesc.lookupLevel = start_lookup_level;
@ -1452,7 +1452,7 @@ TableWalker::doL1Descriptor()
return; return;
} }
Request::Flags flag = 0; Request::Flags flag = Request::PT_WALK;
if (currState->isSecure) if (currState->isSecure)
flag.set(Request::SECURE); flag.set(Request::SECURE);
@ -1633,7 +1633,7 @@ TableWalker::doLongDescriptor()
return; return;
} }
Request::Flags flag = 0; Request::Flags flag = Request::PT_WALK;
if (currState->secureLookup) if (currState->secureLookup)
flag.set(Request::SECURE); flag.set(Request::SECURE);