diff options
author | jhb <jhb@FreeBSD.org> | 2016-02-01 23:12:04 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2016-02-01 23:12:04 +0000 |
commit | 0e26efe2d7cf6ba3520c373445f73eca41063634 (patch) | |
tree | b4cc30e17f8aa862ea6005df019e28fa263b8435 /sys/powerpc/fpu/fpu_emu.c | |
parent | 0924d1687c5bc1e7e372986f9ec31e50ccd21c7b (diff) | |
download | FreeBSD-src-0e26efe2d7cf6ba3520c373445f73eca41063634.zip FreeBSD-src-0e26efe2d7cf6ba3520c373445f73eca41063634.tar.gz |
Restore the ABI of 'struct fpreg' on powerpc.
The PT_{GET,SET}FPREGS requests use 'struct fpreg' and the NT_FPREGSET
core note stores a copy of 'struct fpreg'. As with x86 and the floating
point state there compared to the extended state in XSAVE, struct fpreg
on powerpc now only holds the 'base' FP state, and setting it via
PT_SETFPREGS leaves the extended vector state in a thread unchanged.
Reviewed by: jhibbits
Differential Revision: https://reviews.freebsd.org/D5004
Diffstat (limited to 'sys/powerpc/fpu/fpu_emu.c')
-rw-r--r-- | sys/powerpc/fpu/fpu_emu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/powerpc/fpu/fpu_emu.c b/sys/powerpc/fpu/fpu_emu.c index 82074aa..9056dca 100644 --- a/sys/powerpc/fpu/fpu_emu.c +++ b/sys/powerpc/fpu/fpu_emu.c @@ -183,7 +183,7 @@ fpu_dumpfpn(struct fpn *fp) * (Typically: zero, SIGFPE, SIGILL, SIGSEGV) */ int -fpu_emulate(struct trapframe *frame, struct fpreg *fpf) +fpu_emulate(struct trapframe *frame, struct fpu *fpf) { static union instr insn; static struct fpemu fe; |