changeset 535e088955ca in /z/repo/gem5 details: http://repo.gem5.org/gem5?cmd=changeset;node=535e088955ca description: mem: Add accessor function for vaddr
Determine if a request has an associated virtual address. diffstat: src/mem/request.hh | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diffs (19 lines): diff -r 280cc9b0794f -r 535e088955ca src/mem/request.hh --- a/src/mem/request.hh Tue Sep 09 04:36:32 2014 -0400 +++ b/src/mem/request.hh Tue Sep 09 04:36:33 2014 -0400 @@ -497,8 +497,14 @@ } /** Accessor function for vaddr.*/ + bool + hasVaddr() const + { + return privateFlags.isSet(VALID_VADDR); + } + Addr - getVaddr() + getVaddr() const { assert(privateFlags.isSet(VALID_VADDR)); return _vaddr; _______________________________________________ gem5-dev mailing list gem5-dev@gem5.org http://m5sim.org/mailman/listinfo/gem5-dev