aboutsummaryrefslogtreecommitdiffstats
path: root/testing/csmith/support-ppc64le.patch
diff options
context:
space:
mode:
Diffstat (limited to 'testing/csmith/support-ppc64le.patch')
-rw-r--r--testing/csmith/support-ppc64le.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/testing/csmith/support-ppc64le.patch b/testing/csmith/support-ppc64le.patch
new file mode 100644
index 0000000000..3488ad3be0
--- /dev/null
+++ b/testing/csmith/support-ppc64le.patch
@@ -0,0 +1,28 @@
+From c05ee1d3edfba74e61404666de4f251b42020062 Mon Sep 17 00:00:00 2001
+From: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
+Date: Tue, 21 Nov 2017 08:32:25 +0900
+Subject: [PATCH] Add support powerpc64le
+
+This supports little endian of powerpc64.
+
+Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
+---
+ src/platform.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/platform.cpp b/src/platform.cpp
+index 248ae6e..ff69361 100644
+--- a/src/platform.cpp
++++ b/src/platform.cpp
+@@ -57,7 +57,7 @@
+ // from the current time.
+ //
+ #ifndef HAVE_ARC4RANDOM_BUF
+-# if defined(__powerpc__) || defined(__powerpc64__)
++# if defined(__powerpc__) || defined(__powerpc64__) || defined(__powerpc64le__)
+ static inline unsigned long read_time(void)
+ {
+ unsigned long a;
+--
+2.15.0
+