W dniu 05.09.2011 11:28, Andrew Stubbs pisze: > Next question ... is /proc/cpuinfo really the best way to detect this? > > I mean, is auxv a better approach? Or something else? What's the most > efficient, and most stable API to read the CPU architecture, CPU model, > and FPU/NEON availability? > > There's some worry among the toolchain team that /proc/cpuinfo is a > somewhat fragile and inefficient way to achieve this goal. Some insight > from the kernel experts would be helpful!
Remember that there are cpus like imx51 to2 which have broken neon and this is shown in /proc/cpuinfo (no neon flag for them). So using own tests should also check what kernel has to say. _______________________________________________ linaro-dev mailing list linaro-dev@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-dev