From 711581cf5063fe868fac071613d6356fbddf9124 Mon Sep 17 00:00:00 2001 From: aph Date: Wed, 2 Aug 2017 17:22:40 +0100 Subject: [PATCH] 8185723: Zero: segfaults on Power PC 32-bit Reviewed-by: roland --- src/os_cpu/linux_zero/vm/os_linux_zero.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/os_cpu/linux_zero/vm/os_linux_zero.hpp b/src/os_cpu/linux_zero/vm/os_linux_zero.hpp index 7b7e367ed..51bf78877 100644 --- a/src/os_cpu/linux_zero/vm/os_linux_zero.hpp +++ b/src/os_cpu/linux_zero/vm/os_linux_zero.hpp @@ -38,10 +38,10 @@ static void atomic_copy64(volatile void *src, volatile void *dst) { #if defined(PPC32) double tmp; - asm volatile ("lfd %0, 0(%1)\n" - "stfd %0, 0(%2)\n" - : "=f"(tmp) - : "b"(src), "b"(dst)); + asm volatile ("lfd %0, %2\n" + "stfd %0, %1\n" + : "=&f"(tmp), "=Q"(*(volatile double*)dst) + : "Q"(*(volatile double*)src)); #elif defined(S390) && !defined(_LP64) double tmp; asm volatile ("ld %0, 0(%1)\n" -- GitLab