From: Mitch Hayenga Date: Tue, 9 Sep 2014 08:36:33 +0000 (-0400) Subject: mem: Add accessor function for vaddr X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9a595fac74a0ac1c169f24f3156a922cd5c46a4b;p=gem5.git mem: Add accessor function for vaddr Determine if a request has an associated virtual address. --- 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;