aboutsummaryrefslogtreecommitdiffstats
path: root/testing/csmith/fix-s390x-read_time.patch
diff options
context:
space:
mode:
Diffstat (limited to 'testing/csmith/fix-s390x-read_time.patch')
-rw-r--r--testing/csmith/fix-s390x-read_time.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/testing/csmith/fix-s390x-read_time.patch b/testing/csmith/fix-s390x-read_time.patch
new file mode 100644
index 0000000000..8074f2b1a4
--- /dev/null
+++ b/testing/csmith/fix-s390x-read_time.patch
@@ -0,0 +1,12 @@
+http://bugs.debian.org/872604
+--- csmith-2.3.0/src/platform.cpp.orig
++++ csmith-2.3.0/src/platform.cpp
+@@ -79,7 +79,7 @@
+ static unsigned long long read_time(void)
+ {
+ unsigned long long clk;
+- asm volatile("stckf %0" : "=Q" (clk) : : "cc");
++ asm volatile("stck %0" : "=Q" (clk) : : "cc");
+ return clk;
+ }
+ # elif defined(__i386__) || defined(__x86_64__)