ARM: 8195/1: vfp: Bounce undefined instructions in vectored mode
[firefly-linux-kernel-4.4.55.git] / arch / arm / vfp / vfphw.S
index cda654cbf2c289638da7a6da28b685345ffbf0c4..f74a8f7e5f845a817ea21179fa65412217b365fd 100644 (file)
@@ -197,6 +197,12 @@ look_for_VFP_exceptions:
        tst     r5, #FPSCR_IXE
        bne     process_exception
 
+       tst     r5, #FPSCR_LENGTH_MASK
+       beq     skip
+       orr     r1, r1, #FPEXC_DEX
+       b       process_exception
+skip:
+
        @ Fall into hand on to next handler - appropriate coproc instr
        @ not recognised by VFP