mem: Add accessor function for vaddr
Determine if a request has an associated virtual address.
This commit is contained in:
parent
11494c4345
commit
9a595fac74
1 changed files with 7 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue