respondsTo checks if a controller address ranges includes a given
address.
Change-Id: I9a320011d93e7fd8df1ad3bda75c85d314261a99
Signed-off-by: Tiago Mück <tiago.muck@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/31263
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Bradford Beckmann <bradford.beckmann@gmail.com>
Stats::Histogram& getDelayVCHist(uint32_t index)
{ return *(m_delayVCHistogram[index]); }
+ bool respondsTo(Addr addr)
+ {
+ for (auto &range: addrRanges)
+ if (range.contains(addr)) return true;
+ return false;
+ }
+
/**
* Map an address to the correct MachineID
*