mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
36 lines
807 B
Diff
36 lines
807 B
Diff
--- include/gcc/ppc/ck_pr.h 2024-03-25 05:26:48.000000000 +0800
|
|||
|
|
+++ include/gcc/ppc/ck_pr.h 2024-05-18 04:17:00.000000000 +0800
|
||
|
|
@@ -54,9 +54,13 @@
|
||
|
|
CK_CC_INLINE static void
|
||
|
|
ck_pr_stall(void)
|
||
|
|
{
|
||
|
|
-
|
||
|
|
+#ifdef __APPLE__
|
||
|
|
+ __asm__ __volatile__("or r1, r1, r1;"
|
||
|
|
+ "or r2, r2, r2;" ::: "memory");
|
||
|
|
+#else
|
||
|
|
__asm__ __volatile__("or 1, 1, 1;"
|
||
|
|
"or 2, 2, 2;" ::: "memory");
|
||
|
|
+#endif
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
--- include/gcc/ppc64/ck_pr.h 2024-03-25 05:26:48.000000000 +0800
|
||
|
|
+++ include/gcc/ppc64/ck_pr.h 2024-05-18 04:15:29.000000000 +0800
|
||
|
|
@@ -53,9 +53,13 @@
|
||
|
|
CK_CC_INLINE static void
|
||
|
|
ck_pr_stall(void)
|
||
|
|
{
|
||
|
|
-
|
||
|
|
+#ifdef __APPLE__
|
||
|
|
+ __asm__ __volatile__("or r1, r1, r1;"
|
||
|
|
+ "or r2, r2, r2;" ::: "memory");
|
||
|
|
+#else
|
||
|
|
__asm__ __volatile__("or 1, 1, 1;"
|
||
|
|
"or 2, 2, 2;" ::: "memory");
|
||
|
|
+#endif
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
|