From 885656f2ed55a0a6432ae2beb960944a2a50efcc Mon Sep 17 00:00:00 2001 From: Prakash Ramrakhyani Date: Thu, 31 Oct 2013 13:41:13 -0500 Subject: 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. --- src/arch/arm/tlb.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/arch/arm') 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); -- cgit v1.2.3