summaryrefslogtreecommitdiff
path: root/src/arch/arm/tlbi_op.hh
diff options
context:
space:
mode:
authorGiacomo Travaglini <giacomo.travaglini@arm.com>2019-04-10 15:45:30 +0100
committerGiacomo Travaglini <giacomo.travaglini@arm.com>2019-04-25 12:48:59 +0000
commite8d0b755eadffb0203b966479f55a75281522b18 (patch)
tree1ec6d8dccfc1f01e2db7f35894a7bd51d84cf323 /src/arch/arm/tlbi_op.hh
parent670d080aa1669a67b30da5fad995a4377d23d77d (diff)
downloadgem5-e8d0b755eadffb0203b966479f55a75281522b18.tar.xz
arch-arm: Remove un-needed hyp flag in TLBI operations
The hyp flag was probably a legacy pre-v8 flag distinguishing invalidation targeting PL2 translation regime (hyp mode). Since the introduction of target_el parameter, hyp boolean is not needed anymore. The patch works by setting the hyp flag in the flush* methods in the TLB automatically by checking if target_el == EL2. Change-Id: I798009e09ff24a383dea871e348188bae2685e8e Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com> Reviewed-by: Jan-Peter Larsson <jan-peter.larsson@arm.com> Reviewed-by: Anouk Van Laer <anouk.vanlaer@arm.com> Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com> Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/18389 Maintainer: Andreas Sandberg <andreas.sandberg@arm.com> Tested-by: kokoro <noreply+kokoro@google.com>
Diffstat (limited to 'src/arch/arm/tlbi_op.hh')
-rw-r--r--src/arch/arm/tlbi_op.hh14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/arch/arm/tlbi_op.hh b/src/arch/arm/tlbi_op.hh
index 05733abbb..6bef0f673 100644
--- a/src/arch/arm/tlbi_op.hh
+++ b/src/arch/arm/tlbi_op.hh
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2018 ARM Limited
+ * Copyright (c) 2018-2019 ARM Limited
* All rights reserved
*
* The license below extends only to copyright in the software and shall
@@ -169,14 +169,11 @@ class DTLBIASID : public TLBIOp
class TLBIALLN : public TLBIOp
{
public:
- TLBIALLN(ExceptionLevel _targetEL, bool _hyp)
- : TLBIOp(_targetEL, false), hyp(_hyp)
+ TLBIALLN(ExceptionLevel _targetEL)
+ : TLBIOp(_targetEL, false)
{}
void operator()(ThreadContext* tc) override;
-
- protected:
- bool hyp;
};
/** TLB Invalidate by VA, All ASID */
@@ -184,15 +181,14 @@ class TLBIMVAA : public TLBIOp
{
public:
TLBIMVAA(ExceptionLevel _targetEL, bool _secure,
- Addr _addr, bool _hyp)
- : TLBIOp(_targetEL, _secure), addr(_addr), hyp(_hyp)
+ Addr _addr)
+ : TLBIOp(_targetEL, _secure), addr(_addr)
{}
void operator()(ThreadContext* tc) override;
protected:
Addr addr;
- bool hyp;
};
/** TLB Invalidate by VA */