mirror of
https://github.com/coolsnowwolf/packages.git
synced 2025-04-30 14:32:15 +08:00
12 lines
522 B
Diff
12 lines
522 B
Diff
--- a/boost/fiber/detail/cpu_relax.hpp
|
|
+++ b/boost/fiber/detail/cpu_relax.hpp
|
|
@@ -47,7 +47,7 @@ namespace detail {
|
|
# else
|
|
# define cpu_relax() asm volatile ("nop" ::: "memory");
|
|
# endif
|
|
-#elif BOOST_ARCH_MIPS && (__mips_isa_rev > 1)
|
|
+#elif BOOST_ARCH_MIPS && (((__mips_isa_rev > 1) && defined(__mips32)) || ((__mips_isa_rev > 2) && defined(__mips64)))
|
|
# define cpu_relax() asm volatile ("pause" ::: "memory");
|
|
#elif BOOST_ARCH_PPC
|
|
// http://code.metager.de/source/xref/gnu/glibc/sysdeps/powerpc/sys/platform/ppc.h
|