mem: Add accessor function for vaddr

Determine if a request has an associated virtual address.
This commit is contained in:
Mitch Hayenga 2014-09-09 04:36:33 -04:00
parent 11494c4345
commit 9a595fac74

View file

@ -497,8 +497,14 @@ class Request
}
/** Accessor function for vaddr.*/
bool
hasVaddr() const
{
return privateFlags.isSet(VALID_VADDR);
}
Addr
getVaddr()
getVaddr() const
{
assert(privateFlags.isSet(VALID_VADDR));
return _vaddr;