[OpenImageIO] PPC has no 'pause' asm opcode

Karsten Hopp karsten at fedoraproject.org
Mon Jan 28 15:52:57 UTC 2013


commit d3a5a3304f124109e50f5a830324f807e8cf4488
Author: Karsten Hopp <karsten at redhat.com>
Date:   Mon Jan 28 16:52:46 2013 +0100

    PPC has no 'pause' asm opcode

 OpenImageIO-ppc.patch |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/OpenImageIO-ppc.patch b/OpenImageIO-ppc.patch
index 6a9bf4a..76d99fb 100644
--- a/OpenImageIO-ppc.patch
+++ b/OpenImageIO-ppc.patch
@@ -1,6 +1,6 @@
 diff -up oiio-Release-1.1.3/src/include/thread.h.ppc oiio-Release-1.1.3/src/include/thread.h
 --- oiio-Release-1.1.3/src/include/thread.h.ppc	2013-01-10 02:13:37.000000000 +0100
-+++ oiio-Release-1.1.3/src/include/thread.h	2013-01-28 14:30:48.667934337 +0100
++++ oiio-Release-1.1.3/src/include/thread.h	2013-01-28 15:07:23.190624263 +0100
 @@ -98,7 +98,7 @@
  #endif
  
@@ -52,3 +52,12 @@ diff -up oiio-Release-1.1.3/src/include/thread.h.ppc oiio-Release-1.1.3/src/incl
  #else
  #   error No atomics on this platform.
  #endif
+@@ -324,7 +338,7 @@ pause (int delay)
+ {
+ #if USE_TBB
+     __TBB_Pause(delay);
+-#elif defined(__GNUC__)
++#elif defined(__GNUC__) && !defined (__PPC__)
+     for (int i = 0; i < delay; ++i) {
+         __asm__ __volatile__("pause;");
+     }


More information about the scm-commits mailing list