utility.hh (14169:7b419cdddf0a) utility.hh (14170:ad95f24e4373)
1/*
2 * Copyright (c) 2010, 2012-2013, 2016-2019 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 142 unchanged lines hidden (view full) ---

151}
152
153static inline ExceptionLevel
154currEL(ThreadContext *tc)
155{
156 return opModeToEL(currOpMode(tc));
157}
158
1/*
2 * Copyright (c) 2010, 2012-2013, 2016-2019 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 142 unchanged lines hidden (view full) ---

151}
152
153static inline ExceptionLevel
154currEL(ThreadContext *tc)
155{
156 return opModeToEL(currOpMode(tc));
157}
158
159inline ExceptionLevel
160currEL(CPSR cpsr)
161{
162 return opModeToEL((OperatingMode) (uint8_t)cpsr.mode);
163}
164
159/**
160 * This function checks whether selected EL provided as an argument
161 * is using the AArch32 ISA. This information might be unavailable
162 * at the current EL status: it hence returns a pair of boolean values:
163 * a first boolean, true if information is available (known),
164 * and a second one, true if EL is using AArch32, false for AArch64.
165 *
166 * @param tc The thread context.

--- 216 unchanged lines hidden ---
165/**
166 * This function checks whether selected EL provided as an argument
167 * is using the AArch32 ISA. This information might be unavailable
168 * at the current EL status: it hence returns a pair of boolean values:
169 * a first boolean, true if information is available (known),
170 * and a second one, true if EL is using AArch32, false for AArch64.
171 *
172 * @param tc The thread context.

--- 216 unchanged lines hidden ---