summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/include
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2016-02-01 23:12:04 +0000
committerjhb <jhb@FreeBSD.org>2016-02-01 23:12:04 +0000
commit0e26efe2d7cf6ba3520c373445f73eca41063634 (patch)
treeb4cc30e17f8aa862ea6005df019e28fa263b8435 /sys/powerpc/include
parent0924d1687c5bc1e7e372986f9ec31e50ccd21c7b (diff)
downloadFreeBSD-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/include')
-rw-r--r--sys/powerpc/include/reg.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/powerpc/include/reg.h b/sys/powerpc/include/reg.h
index e77625a..0eff51e 100644
--- a/sys/powerpc/include/reg.h
+++ b/sys/powerpc/include/reg.h
@@ -18,12 +18,8 @@ struct reg {
register_t pc;
};
-/* Must match pcb.pcb_fpu */
struct fpreg {
- union {
- double fpr;
- uint64_t vsr[2];
- } fpreg[32];
+ double fpreg[32];
double fpscr;
};
OpenPOWER on IntegriCloud