aports/testing/csmith/fix-s390x-read_time.patch
Daniel Sabogal 3ea997b3ec testing/csmith: new aport
https://embed.cs.utah.edu/csmith/
Tool for generating random C programs
2018-01-07 12:55:00 -05:00

12 lines
359 B
Diff

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__)