aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/liboil/fix-s390x-stamp.patch
blob: 49536afcffb632b8ef71b80c5b18c2a71a6ec054 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/liboil/liboilcpu-misc.c b/liboil/liboilcpu-misc.c
index 97b740c..9333b13 100644
--- a/liboil/liboilcpu-misc.c
+++ b/liboil/liboilcpu-misc.c
@@ -87,7 +87,7 @@ static unsigned long
 oil_profile_stamp_s390(void)
 {
   uint64_t ts;
-  __asm__ __volatile__ ("STCK %0(%0)\n" : : "r" (&ts));
+  __asm__ __volatile__ ("STCK %0\n" : "=Q" (ts) :: "cc");
   return ts;
 }