static_inst.cc (14171:58d343fa3194) | static_inst.cc (14172:bba55ff08279) |
---|---|
1/* 2 * Copyright (c) 2010-2014, 2016-2019 ARM Limited 3 * Copyright (c) 2013 Advanced Micro Devices, Inc. 4 * All rights reserved 5 * 6 * The license below extends only to copyright in the software and shall 7 * not be construed as granting a license to any other intellectual 8 * property including but not limited to intellectual property relating --- 689 unchanged lines hidden (view full) --- 698ArmStaticInst::checkAdvSIMDOrFPEnabled32(ThreadContext *tc, 699 CPSR cpsr, CPACR cpacr, 700 NSACR nsacr, FPEXC fpexc, 701 bool fpexc_check, bool advsimd) const 702{ 703 const bool have_virtualization = ArmSystem::haveVirtualization(tc); 704 const bool have_security = ArmSystem::haveSecurity(tc); 705 const bool is_secure = inSecureState(tc); | 1/* 2 * Copyright (c) 2010-2014, 2016-2019 ARM Limited 3 * Copyright (c) 2013 Advanced Micro Devices, Inc. 4 * All rights reserved 5 * 6 * The license below extends only to copyright in the software and shall 7 * not be construed as granting a license to any other intellectual 8 * property including but not limited to intellectual property relating --- 689 unchanged lines hidden (view full) --- 698ArmStaticInst::checkAdvSIMDOrFPEnabled32(ThreadContext *tc, 699 CPSR cpsr, CPACR cpacr, 700 NSACR nsacr, FPEXC fpexc, 701 bool fpexc_check, bool advsimd) const 702{ 703 const bool have_virtualization = ArmSystem::haveVirtualization(tc); 704 const bool have_security = ArmSystem::haveSecurity(tc); 705 const bool is_secure = inSecureState(tc); |
706 const ExceptionLevel cur_el = opModeToEL(currOpMode(tc)); | 706 const ExceptionLevel cur_el = currEL(tc); |
707 708 if (cur_el == EL0 && ELIs64(tc, EL1)) 709 return checkFPAdvSIMDEnabled64(tc, cpsr, cpacr); 710 711 uint8_t cpacr_cp10 = cpacr.cp10; 712 bool cpacr_asedis = cpacr.asedis; 713 714 if (have_security && !ELIs64(tc, EL3) && !is_secure) { --- 458 unchanged lines hidden --- | 707 708 if (cur_el == EL0 && ELIs64(tc, EL1)) 709 return checkFPAdvSIMDEnabled64(tc, cpsr, cpacr); 710 711 uint8_t cpacr_cp10 = cpacr.cp10; 712 bool cpacr_asedis = cpacr.asedis; 713 714 if (have_security && !ELIs64(tc, EL3) && !is_secure) { --- 458 unchanged lines hidden --- |