projects
/
platform
/
upstream
/
openblas.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix build error
[platform/upstream/openblas.git]
/
common_power.h
diff --git
a/common_power.h
b/common_power.h
index
052d388
..
e3a1a7a
100644
(file)
--- a/
common_power.h
+++ b/
common_power.h
@@
-39,8
+39,13
@@
#ifndef COMMON_POWER
#define COMMON_POWER
#ifndef COMMON_POWER
#define COMMON_POWER
+#if defined(POWER8)
+#define MB __asm__ __volatile__ ("eieio":::"memory")
+#define WMB __asm__ __volatile__ ("eieio":::"memory")
+#else
#define MB __asm__ __volatile__ ("sync")
#define WMB __asm__ __volatile__ ("sync")
#define MB __asm__ __volatile__ ("sync")
#define WMB __asm__ __volatile__ ("sync")
+#endif
#define INLINE inline
#define INLINE inline