utility.hh (13364:055bf0fa0f02) | utility.hh (13550:976591c112bc) |
---|---|
1/* 2 * Copyright (c) 2010, 2012-2013, 2016-2018 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 --- 236 unchanged lines hidden (view full) --- 245 * Return TRUE if an Exception level below EL3 is in Secure state. 246 * Differs from inSecureState in that it ignores the current EL 247 * or Mode in considering security state. 248 */ 249inline bool isSecureBelowEL3(ThreadContext *tc); 250 251bool longDescFormatInUse(ThreadContext *tc); 252 | 1/* 2 * Copyright (c) 2010, 2012-2013, 2016-2018 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 --- 236 unchanged lines hidden (view full) --- 245 * Return TRUE if an Exception level below EL3 is in Secure state. 246 * Differs from inSecureState in that it ignores the current EL 247 * or Mode in considering security state. 248 */ 249inline bool isSecureBelowEL3(ThreadContext *tc); 250 251bool longDescFormatInUse(ThreadContext *tc); 252 |
253uint32_t getMPIDR(ArmSystem *arm_sys, ThreadContext *tc); | 253/** This helper function is either returing the value of 254 * MPIDR_EL1 (by calling getMPIDR), or it is issuing a read 255 * to VMPIDR_EL2 (as it happens in virtualized systems) */ 256MiscReg readMPIDR(ArmSystem *arm_sys, ThreadContext *tc); |
254 | 257 |
258/** This helper function is returing the value of MPIDR_EL1 */ 259MiscReg getMPIDR(ArmSystem *arm_sys, ThreadContext *tc); 260 |
|
255static inline uint32_t 256mcrMrcIssBuild(bool isRead, uint32_t crm, IntRegIndex rt, uint32_t crn, 257 uint32_t opc1, uint32_t opc2) 258{ 259 return (isRead << 0) | 260 (crm << 1) | 261 (rt << 5) | 262 (crn << 10) | --- 109 unchanged lines hidden --- | 261static inline uint32_t 262mcrMrcIssBuild(bool isRead, uint32_t crm, IntRegIndex rt, uint32_t crn, 263 uint32_t opc1, uint32_t opc2) 264{ 265 return (isRead << 0) | 266 (crm << 1) | 267 (rt << 5) | 268 (crn << 10) | --- 109 unchanged lines hidden --- |