On 04/04/15 18:28, Diego Biurrun wrote:
On Fri, Apr 03, 2015 at 03:31:32PM +0200, Luca Barbato wrote:
--- a/libavutil/ppc/cpu.c
+++ b/libavutil/ppc/cpu.c
@@ -62,6 +66,32 @@ int ff_get_cpu_flags_ppc(void)
if (err == 0)
return has_vu ? AV_CPU_FLAG_ALTIVEC : 0;
return 0;
+#elif defined(__linux__)
+ // The linux kernel could have the altivec support disabled
+ // even if the cpu has it.
The Linux kernel could have the AltiVec support disabled
even if the CPU has AltiVec.
This looks like it should work, but testing is better.
Tested now, pushing with one more header added for open()
To be noted that compiling using -mcpu=power7 causes gcc to use vmx
instructions that will trip a sigill (in short, if you have a power7 and
your kernel disables altivec you will have problems even after this patch).
lu
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel