summaryrefslogtreecommitdiff
path: root/src/dev/io_device.cc
diff options
context:
space:
mode:
authorAli Saidi <Ali.Saidi@ARM.com>2010-11-08 13:58:24 -0600
committerAli Saidi <Ali.Saidi@ARM.com>2010-11-08 13:58:24 -0600
commitea1167dd9fa60f862f8879a5de66938e617e0ce0 (patch)
tree2582ebc6bb2ce62a025f6034320da76a0cc47c22 /src/dev/io_device.cc
parente6c31ceb2bf62da1241fe6cfcfbd67fd055ce8cd (diff)
downloadgem5-ea1167dd9fa60f862f8879a5de66938e617e0ce0.tar.xz
Bus: Have the I/O devices that return address ranges print them out.
This way we actually get device names associated with the devices.
Diffstat (limited to 'src/dev/io_device.cc')
-rw-r--r--src/dev/io_device.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dev/io_device.cc b/src/dev/io_device.cc
index 5bb981c66..08269bf51 100644
--- a/src/dev/io_device.cc
+++ b/src/dev/io_device.cc
@@ -51,6 +51,8 @@ PioPort::getDeviceAddressRanges(AddrRangeList &resp, bool &snoop)
{
snoop = false;
device->addressRanges(resp);
+ for (AddrRangeIter i = resp.begin(); i != resp.end(); i++)
+ DPRINTF(BusAddrRanges, "Adding Range %#x-%#x\n", i->start, i->end);
}
@@ -95,6 +97,7 @@ BasicPioDevice::addressRanges(AddrRangeList &range_list)
{
assert(pioSize != 0);
range_list.clear();
+ DPRINTF(BusAddrRanges, "registering range: %#x-%#x\n", pioAddr, pioSize);
range_list.push_back(RangeSize(pioAddr, pioSize));
}