From 9a595fac74a0ac1c169f24f3156a922cd5c46a4b Mon Sep 17 00:00:00 2001 From: Mitch Hayenga Date: Tue, 9 Sep 2014 04:36:33 -0400 Subject: [PATCH] mem: Add accessor function for vaddr Determine if a request has an associated virtual address. --- src/mem/request.hh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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; -- 2.30.2