summaryrefslogtreecommitdiff
path: root/libc/ports/sysdeps/hppa/fpu/fpu_control.h
diff options
context:
space:
mode:
Diffstat (limited to 'libc/ports/sysdeps/hppa/fpu/fpu_control.h')
-rw-r--r--libc/ports/sysdeps/hppa/fpu/fpu_control.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/ports/sysdeps/hppa/fpu/fpu_control.h b/libc/ports/sysdeps/hppa/fpu/fpu_control.h
index 5cac3344d..627cdd5b9 100644
--- a/libc/ports/sysdeps/hppa/fpu/fpu_control.h
+++ b/libc/ports/sysdeps/hppa/fpu/fpu_control.h
@@ -49,7 +49,7 @@ typedef unsigned int fpu_control_t;
__asm__ ("fstd %%fr0,0(%1)\n\t" \
"fldd 0(%1),%%fr0\n\t" \
: "=m" (__fullfp.__fpreg) : "r" (&__fullfp.__fpreg) : "%r0"); \
- __fullfp.__halfreg[0]; \
+ cw = __fullfp.__halfreg[0]; \
})
#define _FPU_SETCW(cw) \
@@ -57,7 +57,7 @@ typedef unsigned int fpu_control_t;
union { __extension__ unsigned long long __fpreg; unsigned int __halfreg[2]; } __fullfp; \
__fullfp.__halfreg[0] = cw; \
__asm__ ("fldd 0(%1),%%fr0\n\t" \
- : : "m" (__fullfp.__fpreg), "r" (__fullfp.__fpreg) : "%r0" ); \
+ : : "m" (__fullfp.__fpreg), "r" (&__fullfp.__fpreg) : "%r0" ); \
})
/* Default control word set at startup. */