• Jeffrey Lee's avatar
    Add support for reporting the ARMv8 MVFR2 register. Improve safety of context switches. · 9dadbd27
    Jeffrey Lee authored
    Detail:
      hdr/VFPSupport - Define VFPSupport_Features reason code 3, for reading extra feature registers
      s/Macros - Use ELIF to shorten myVMRS & myVMSR macros. Add MVFR2 support to myVMRS.
      s/Module - Implement VFPSupport_Features 3, for reading MVFR2 (and three other values reserved for future proofing). Since there doesn't seem to be an easy way of detecting the presence of MVFR2, we fall back on a list of known-good FPSID values, like with MVFR0/MVFR1 on pre-VFPv3 systems. Also update VFPSupport_ChangeContext to do a dummy load from the new VFP context, to help trap bad contexts before we've updated our state to indicate that that context is active.
      Test/features,ffb - Add VFPSupport_Features 3 output
    Admin:
      Tested on Raspberry Pi 1, 2, 3
    
    
    Version 0.13. Tagged as 'VFPSupport-0_13'
    9dadbd27
VersionASM 1022 Bytes