summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/fpu/fpu_explode.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2016-02-04 17:43:56 +0000
committerjhb <jhb@FreeBSD.org>2016-02-04 17:43:56 +0000
commita4232236fc1def9db170b2b0c3f27704b202f294 (patch)
treec3c308ed23d935ee4f9b8d1d6bf5529ad84ad936 /sys/powerpc/fpu/fpu_explode.c
parent327df1a84adbc8d73c704c55a2b3ceaacb6cdd96 (diff)
downloadFreeBSD-src-a4232236fc1def9db170b2b0c3f27704b202f294.zip
FreeBSD-src-a4232236fc1def9db170b2b0c3f27704b202f294.tar.gz
Fix build of powerpc FPU emulator after changes in r295132 to restore the
ABI of struct fpreg. The FPU emulator operates on the "raw" FPU state stored in the pcb rather than the "cooked" fpreg state used for ptrace() and cores. Reported by: bz
Diffstat (limited to 'sys/powerpc/fpu/fpu_explode.c')
-rw-r--r--sys/powerpc/fpu/fpu_explode.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/powerpc/fpu/fpu_explode.c b/sys/powerpc/fpu/fpu_explode.c
index 1ebd96e..84073a4 100644
--- a/sys/powerpc/fpu/fpu_explode.c
+++ b/sys/powerpc/fpu/fpu_explode.c
@@ -53,7 +53,7 @@ __FBSDID("$FreeBSD$");
#include <machine/fpu.h>
#include <machine/ieee.h>
-#include <machine/reg.h>
+#include <machine/pcb.h>
#include <powerpc/fpu/fpu_arith.h>
#include <powerpc/fpu/fpu_emu.h>
@@ -211,9 +211,9 @@ fpu_explode(struct fpemu *fe, struct fpn *fp, int type, int reg)
u_int s, *space;
u_int64_t l, *xspace;
- xspace = (u_int64_t *)&fe->fe_fpstate->fpreg[reg].fpr;
+ xspace = (u_int64_t *)&fe->fe_fpstate->fpr[reg].fpr;
l = xspace[0];
- space = (u_int *)&fe->fe_fpstate->fpreg[reg].fpr;
+ space = (u_int *)&fe->fe_fpstate->fpr[reg].fpr;
s = space[0];
fp->fp_sign = s >> 31;
fp->fp_sticky = 0;
OpenPOWER on IntegriCloud