Add AC_CACHE_CHECK() for pause instruction.
This supports cross compilation.
This commit is contained in:
parent
9b75677e53
commit
2eb941a3d3
@ -207,9 +207,10 @@ dnl CPU-specific settings.
|
|||||||
CPU_SPINWAIT=""
|
CPU_SPINWAIT=""
|
||||||
case "${host_cpu}" in
|
case "${host_cpu}" in
|
||||||
i686|x86_64)
|
i686|x86_64)
|
||||||
JE_COMPILABLE([pause instruction], [],
|
AC_CACHE_CHECK([whether pause instruction is compilable], [je_cv_pause],
|
||||||
[[__asm__ volatile("pause"); return 0;]],
|
[JE_COMPILABLE([pause instruction], [],
|
||||||
[je_cv_pause])
|
[[__asm__ volatile("pause"); return 0;]],
|
||||||
|
[je_cv_pause])])
|
||||||
if test "x${je_cv_pause}" = "xyes" ; then
|
if test "x${je_cv_pause}" = "xyes" ; then
|
||||||
CPU_SPINWAIT='__asm__ volatile("pause")'
|
CPU_SPINWAIT='__asm__ volatile("pause")'
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user