* Accessor for paddr.
*/
bool
- hasPaddr()
+ hasPaddr() const
{
return privateFlags.isSet(VALID_PADDR);
}
Addr
- getPaddr()
+ getPaddr() const
{
assert(privateFlags.isSet(VALID_PADDR));
return _paddr;
* Level of the cache hierachy where this request was responded to
* (e.g. 0 = L1; 1 = L2).
*/
- int depth;
+ mutable int depth;
/**
* Accessor for size.
*/
bool
- hasSize()
+ hasSize() const
{
return privateFlags.isSet(VALID_SIZE);
}
int
- getSize()
+ getSize() const
{
assert(privateFlags.isSet(VALID_SIZE));
return _size;
/** Accesssor for the requestor id. */
MasterID
- masterId()
+ masterId() const
{
return _masterId;
}
/** Accessor function for asid.*/
int
- getAsid()
+ getAsid() const
{
assert(privateFlags.isSet(VALID_VADDR));
return _asid;
/** Accessor function for architecture-specific flags.*/
ArchFlagsType
- getArchFlags()
+ getArchFlags() const
{
assert(privateFlags.isSet(VALID_PADDR|VALID_VADDR));
return _flags & ARCH_BITS;
/** Accessor function to check if sc result is valid. */
bool
- extraDataValid()
+ extraDataValid() const
{
return privateFlags.isSet(VALID_EXTRA_DATA);
}
* Increment/Get the depth at which this request is responded to.
* This currently happens when the request misses in any cache level.
*/
- void incAccessDepth() { depth++; }
+ void incAccessDepth() const { depth++; }
int getAccessDepth() const { return depth; }
/**