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:
Andreas Hansson
2012-07-09 12:35:34 -04:00
parent 830391cad9
commit 46d9adb68c
35 changed files with 57 additions and 54 deletions

View File

@@ -708,7 +708,7 @@ Gic::postInt(uint32_t cpu, Tick when)
}
AddrRangeList
Gic::getAddrRanges()
Gic::getAddrRanges() const
{
AddrRangeList ranges;
ranges.push_back(RangeSize(distAddr, DIST_SIZE));

View File

@@ -261,7 +261,7 @@ class Gic : public PioDevice
/** Return the address ranges used by the Gic
* This is the distributor address + all cpu addresses
*/
virtual AddrRangeList getAddrRanges();
virtual AddrRangeList getAddrRanges() const;
/** A PIO read to the device, immediately split up into
* readDistributor() or readCpu()

View File

@@ -746,7 +746,7 @@ Pl111::generateInterrupt()
}
AddrRangeList
Pl111::getAddrRanges()
Pl111::getAddrRanges() const
{
AddrRangeList ranges;
ranges.push_back(RangeSize(pioAddr, pioSize));

View File

@@ -329,7 +329,7 @@ class Pl111: public AmbaDmaDevice
*
* @return a list of non-overlapping address ranges
*/
AddrRangeList getAddrRanges();
AddrRangeList getAddrRanges() const;
};
#endif