148a149,167
> static inline bool
> vfpEnabled(CPACR cpacr, CPSR cpsr)
> {
> return cpacr.cp10 == 0x3 ||
> (cpacr.cp10 == 0x2 && inPrivilegedMode(cpsr));
> }
>
> static inline bool
> vfpEnabled(CPACR cpacr, CPSR cpsr, FPEXC fpexc)
> {
> return fpexc.en && vfpEnabled(cpacr, cpsr);
> }
>
> static inline bool
> neonEnabled(CPACR cpacr, CPSR cpsr, FPEXC fpexc)
> {
> return !cpacr.asedis && vfpEnabled(cpacr, cpsr, fpexc);
> }
>