summaryrefslogtreecommitdiff
path: root/src/mem/request.hh
diff options
context:
space:
mode:
authorPrakash Ramrakhyani <prakash.ramrakhyani@arm.com>2013-10-31 13:41:13 -0500
committerPrakash Ramrakhyani <prakash.ramrakhyani@arm.com>2013-10-31 13:41:13 -0500
commit885656f2ed55a0a6432ae2beb960944a2a50efcc (patch)
tree7b511e9eb05b437de64306a93130a5c42481f155 /src/mem/request.hh
parent68dee58c38a6f861829522d47510c294459e7494 (diff)
downloadgem5-885656f2ed55a0a6432ae2beb960944a2a50efcc.tar.xz
mem: Add privilege info to request class
This patch adds a flag in the request class that indicates if the request was made in privileged mode.
Diffstat (limited to 'src/mem/request.hh')
-rw-r--r--src/mem/request.hh3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mem/request.hh b/src/mem/request.hh
index f37e34dd4..a0ff50910 100644
--- a/src/mem/request.hh
+++ b/src/mem/request.hh
@@ -111,6 +111,8 @@ class Request
static const FlagsType MMAPPED_IPR = 0x00002000;
/** This request is a clear exclusive. */
static const FlagsType CLEAR_LL = 0x00004000;
+ /** This request is made in privileged mode. */
+ static const FlagsType PRIVILEGED = 0x00008000;
/** The request should not cause a memory access. */
static const FlagsType NO_ACCESS = 0x00080000;
@@ -539,6 +541,7 @@ class Request
bool isInstFetch() const { return _flags.isSet(INST_FETCH); }
bool isPrefetch() const { return _flags.isSet(PREFETCH); }
bool isLLSC() const { return _flags.isSet(LLSC); }
+ bool isPriv() const { return _flags.isSet(PRIVILEGED); }
bool isLocked() const { return _flags.isSet(LOCKED); }
bool isSwap() const { return _flags.isSet(MEM_SWAP|MEM_SWAP_COND); }
bool isCondSwap() const { return _flags.isSet(MEM_SWAP_COND); }