···582582 elf_hwcap |= HWCAP_VFPv3D16;583583 }584584#endif585585-#ifdef CONFIG_NEON586585 /*587586 * Check for the presence of the Advanced SIMD588587 * load/store instructions, integer and single···589590 * for NEON if the hardware has the MVFR registers.590591 */591592 if ((read_cpuid_id() & 0x000f0000) == 0x000f0000) {593593+#ifdef CONFIG_NEON592594 if ((fmrx(MVFR1) & 0x000fff00) == 0x00011100)593595 elf_hwcap |= HWCAP_NEON;594594- }595596#endif597597+ if ((fmrx(MVFR1) & 0xf0000000) == 0x10000000)598598+ elf_hwcap |= HWCAP_VFPv4;599599+ }596600 }597601 return 0;598602}