diff options
author | Mitch Hayenga <mitch.hayenga@arm.com> | 2014-09-09 04:36:33 -0400 |
---|---|---|
committer | Mitch Hayenga <mitch.hayenga@arm.com> | 2014-09-09 04:36:33 -0400 |
commit | 9a595fac74a0ac1c169f24f3156a922cd5c46a4b (patch) | |
tree | d787cb5dfb9d19af6f2990ece44b38f9e58b478d | |
parent | 11494c4345e0de2b51dddcc936cedade76f8a90e (diff) | |
download | gem5-9a595fac74a0ac1c169f24f3156a922cd5c46a4b.tar.xz |
mem: Add accessor function for vaddr
Determine if a request has an associated virtual address.
-rw-r--r-- | src/mem/request.hh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mem/request.hh b/src/mem/request.hh index a064e0b05..799439f02 100644 --- a/src/mem/request.hh +++ b/src/mem/request.hh @@ -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; |