projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11494c4
)
mem: Add accessor function for vaddr
author
Mitch Hayenga
<mitch.hayenga@arm.com>
Tue, 9 Sep 2014 08:36:33 +0000
(
04:36
-0400)
committer
Mitch Hayenga
<mitch.hayenga@arm.com>
Tue, 9 Sep 2014 08:36:33 +0000
(
04:36
-0400)
Determine if a request has an associated virtual address.
src/mem/request.hh
patch
|
blob
|
history
diff --git
a/src/mem/request.hh
b/src/mem/request.hh
index a064e0b05099de044543dca36867f56e133b4c51..799439f02558391e0095663457e2cf79c4e51cc4 100644
(file)
--- 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;