summaryrefslogtreecommitdiff
path: root/src/kern
diff options
context:
space:
mode:
authorAndreas Hansson <andreas.hansson@arm.com>2014-10-16 05:49:59 -0400
committerAndreas Hansson <andreas.hansson@arm.com>2014-10-16 05:49:59 -0400
commitedc77fc03cc2f9ef0fb17a34a998b2b957904c93 (patch)
tree3f715c08e8dcf66bac6a939dcac5d8fb8506822d /src/kern
parente6ad39adac7e77e36a294f63da47ad79ca446e93 (diff)
downloadgem5-edc77fc03cc2f9ef0fb17a34a998b2b957904c93.tar.xz
misc: Move AddrRangeList from port.hh to addr_range.hh
The new location seems like a better fit. The iterator typedefs are removed in favour of using C++11 auto.
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;
}