Port: Make getAddrRanges const
This patch makes getAddrRanges const throughout the code base. There is no reason why it should not be, and making it const prevents adding any unintentional side-effects.
This commit is contained in:
@@ -71,7 +71,7 @@ PciDev::PciConfigPort::recvAtomic(PacketPtr pkt)
|
||||
}
|
||||
|
||||
AddrRangeList
|
||||
PciDev::PciConfigPort::getAddrRanges()
|
||||
PciDev::PciConfigPort::getAddrRanges() const
|
||||
{
|
||||
AddrRangeList ranges;
|
||||
if (configAddr != ULL(-1))
|
||||
@@ -208,7 +208,7 @@ PciDev::readConfig(PacketPtr pkt)
|
||||
}
|
||||
|
||||
AddrRangeList
|
||||
PciDev::getAddrRanges()
|
||||
PciDev::getAddrRanges() const
|
||||
{
|
||||
AddrRangeList ranges;
|
||||
int x = 0;
|
||||
|
||||
Reference in New Issue
Block a user