Date: Mon, 19 Oct 2020 09:48:22 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 250454] PT_GETFPREGS on i386 oversimplifies translating FPU Tag Word Message-ID: <bug-250454-227-WN0lig7BAr@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-250454-227@https.bugs.freebsd.org/bugzilla/> References: <bug-250454-227@https.bugs.freebsd.org/bugzilla/>
index | next in thread | previous in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=250454 --- Comment #1 from Michał Górny <mgorny@gentoo.org> --- Created attachment 218882 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=218882&action=edit Proposed patch Here's a patch based on the similar problem fixed on NetBSD. Without the patch, the test program outputs 0x03ff, i.e.: 0000 0011 1111 1111 With the patch, it outputs 0x63ff: 0110 0011 1111 1111 Please note that I've only been able to test the compat32 version on amd64. FreeBSD/i386 does not seem to boot on qemu for me. -- You are receiving this mail because: You are the assignee for the bug.help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-250454-227-WN0lig7BAr>
