Bus: Have the I/O devices that return address ranges print them out.

This way we actually get device names associated with the devices.
This commit is contained in:
Ali Saidi 2010-11-08 13:58:24 -06:00
parent e6c31ceb2b
commit ea1167dd9f

View file

@ -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));
}