arm: mm: handle unaligned memory access fpu instructions

Some applications generate fpu instructions to unaligned memory
locations. This results in memory access exceptions. Fix this by handle
these fpu instructions in the memory alignment handler.
This commit is contained in:
Oliver Schildan
2016-09-09 08:42:19 +02:00
committed by Oleg Karfich
parent bd40e000c5
commit cd7d9cd871
+1
View File
@@ -870,6 +870,7 @@ do_alignment(unsigned long addr, unsigned int fsr, struct pt_regs *regs)
break;
case 0x04000000: /* ldr or str immediate */
case 0x0C000000: /* ldr | str float */
if (COND_BITS(instr) == 0xf0000000) /* NEON VLDn, VSTn */
goto bad;
offset.un = OFFSET_BITS(instr);