From: Ali Saidi Date: Mon, 8 Nov 2010 19:58:24 +0000 (-0600) Subject: Bus: Have the I/O devices that return address ranges print them out. X-Git-Tag: stable_2012_02_02~766 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ea1167dd9fa60f862f8879a5de66938e617e0ce0;p=gem5.git Bus: Have the I/O devices that return address ranges print them out. This way we actually get device names associated with the devices. --- 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)); }