summaryrefslogtreecommitdiff
path: root/src/kern
diff options
context:
space:
mode:
Diffstat (limited to 'src/kern')
-rw-r--r--src/kern/tru64/tru64_events.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/kern/tru64/tru64_events.cc b/src/kern/tru64/tru64_events.cc
index 943d961fb..df346d6ab 100644
--- a/src/kern/tru64/tru64_events.cc
+++ b/src/kern/tru64/tru64_events.cc
@@ -57,15 +57,14 @@ BadAddrEvent::process(ThreadContext *tc)
uint64_t a0 = tc->readIntReg(16);
- AddrRangeIter iter;
bool found = false;
MasterPort &dataPort = tc->getCpuPtr()->getDataPort();
// get the address ranges of the connected slave port
AddrRangeList resp = dataPort.getAddrRanges();
- for (iter = resp.begin(); iter != resp.end(); iter++) {
- if (iter->contains(K0Seg2Phys(a0) & PAddrImplMask))
+ for (const auto &iter : resp) {
+ if (iter.contains(K0Seg2Phys(a0) & PAddrImplMask))
found = true;
}