diff options
author | Giacomo Travaglini <giacomo.travaglini@arm.com> | 2017-11-27 18:10:17 +0000 |
---|---|---|
committer | Giacomo Travaglini <giacomo.travaglini@arm.com> | 2017-11-28 12:00:30 +0000 |
commit | 7c1405402c7c53f17e554f584b7e801f1f755034 (patch) | |
tree | b02ec6bb1050454b5c13a838ee3cdf944c538c13 /src/arch/arm/system.hh | |
parent | e7bff655aa48da0fd1e7656bc10b66473f34aa2a (diff) | |
download | gem5-7c1405402c7c53f17e554f584b7e801f1f755034.tar.xz |
arch-arm: Add haveEL pseudocode function
This patch introduces the ARM pseudocode haveEL function
into gem5.
Change-Id: I0d96070959e8e13773eb7fa9964894ec0ff2cac2
Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/6162
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Diffstat (limited to 'src/arch/arm/system.hh')
-rw-r--r-- | src/arch/arm/system.hh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/arch/arm/system.hh b/src/arch/arm/system.hh index b81ec05f9..46103f42c 100644 --- a/src/arch/arm/system.hh +++ b/src/arch/arm/system.hh @@ -259,8 +259,11 @@ class ArmSystem : public System */ static ExceptionLevel highestEL(ThreadContext *tc); - /** Returns the reset address if the highest implemented exception level for - * the system of a specific thread context is 64 bits (ARMv8) + /** Return true if the system implements a specific exception level */ + static bool haveEL(ThreadContext *tc, ExceptionLevel el); + + /** Returns the reset address if the highest implemented exception level + * for the system of a specific thread context is 64 bits (ARMv8) */ static Addr resetAddr64(ThreadContext *tc); |