summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
authorChuan Zhu <chuan.zhu@arm.com>2018-01-23 10:19:07 +0000
committerGiacomo Travaglini <giacomo.travaglini@arm.com>2018-02-16 09:29:38 +0000
commit94553f32d8dbb7979dbeb0e6bafaa5db1985db1e (patch)
tree643680b58619faa61bbf173aa549f12cc1e5f730 /src/arch
parentc105793a2027cd113233e8ce6c5e2d4ea2f9cded (diff)
downloadgem5-94553f32d8dbb7979dbeb0e6bafaa5db1985db1e.tar.xz
arch-arm: Fix syntax error in TLB::getResultTe
The patch fixes one syntax error in TLB::getResultTe Change-Id: I31a72a52d5c03f43929a69ca1be61d9c20e76f5b Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com> Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com> Reviewed-on: https://gem5-review.googlesource.com/7983 Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/arm/tlb.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/arch/arm/tlb.cc b/src/arch/arm/tlb.cc
index aeaf60bdd..5f104e96d 100644
--- a/src/arch/arm/tlb.cc
+++ b/src/arch/arm/tlb.cc
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010-2013, 2016-2017 ARM Limited
+ * Copyright (c) 2010-2013, 2016-2018 ARM Limited
* All rights reserved
*
* The license below extends only to copyright in the software and shall
@@ -1473,8 +1473,8 @@ TLB::getResultTe(TlbEntry **te, RequestPtr req, ThreadContext *tc, Mode mode,
fault = getTE(&s2Te, req, tc, mode, translation, timing, functional,
isSecure, curTranType);
// Check permissions of stage 2
- if ((s2Te != NULL) && (fault = NoFault)) {
- if(aarch64)
+ if ((s2Te != NULL) && (fault == NoFault)) {
+ if (aarch64)
fault = checkPermissions64(s2Te, req, mode, tc);
else
fault = checkPermissions(s2Te, req, mode);