summaryrefslogtreecommitdiff
path: root/src/arch
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/arch
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/arch')
-rw-r--r--src/arch/arm/tlb.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/arch/arm/tlb.cc b/src/arch/arm/tlb.cc
index 7a79725e1..107901f99 100644
--- a/src/arch/arm/tlb.cc
+++ b/src/arch/arm/tlb.cc
@@ -474,6 +474,8 @@ TLB::translateFs(RequestPtr req, ThreadContext *tc, Mode mode,
bool is_priv = isPriv && !(flags & UserMode);
req->setAsid(contextId.asid);
+ if (is_priv)
+ req->setFlags(Request::PRIVILEGED);
DPRINTF(TLBVerbose, "CPSR is priv:%d UserMode:%d\n",
isPriv, flags & UserMode);