utility.hh (7640:5286a8a469c5) | utility.hh (7644:62873d5c2bfc) |
---|---|
1/* 2 * Copyright (c) 2010 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 --- 136 unchanged lines hidden (view full) --- 145 { 146 return !inUserMode(tc); 147 } 148 149 static inline bool 150 vfpEnabled(CPACR cpacr, CPSR cpsr) 151 { 152 return cpacr.cp10 == 0x3 || | 1/* 2 * Copyright (c) 2010 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 --- 136 unchanged lines hidden (view full) --- 145 { 146 return !inUserMode(tc); 147 } 148 149 static inline bool 150 vfpEnabled(CPACR cpacr, CPSR cpsr) 151 { 152 return cpacr.cp10 == 0x3 || |
153 (cpacr.cp10 == 0x2 && inPrivilegedMode(cpsr)); | 153 (cpacr.cp10 == 0x1 && inPrivilegedMode(cpsr)); |
154 } 155 156 static inline bool 157 vfpEnabled(CPACR cpacr, CPSR cpsr, FPEXC fpexc) 158 { 159 return fpexc.en && vfpEnabled(cpacr, cpsr); 160 } 161 --- 15 unchanged lines hidden --- | 154 } 155 156 static inline bool 157 vfpEnabled(CPACR cpacr, CPSR cpsr, FPEXC fpexc) 158 { 159 return fpexc.en && vfpEnabled(cpacr, cpsr); 160 } 161 --- 15 unchanged lines hidden --- |