Re: SSE registers in thread state

2023-06-20 Thread Sergey Bugaev
On Tue, Jun 20, 2023 at 12:24 PM Samuel Thibault wrote: > > I don't know much about SSE and those registers and fxsave/fxrstor and > > xsave/xrstor, but it seems clear enough that this will result in > > string operations breaking after a thread receives a signal > > AIUI the problem only happens

Re: SSE registers in thread state

2023-06-20 Thread Samuel Thibault
Hello, Sergey Bugaev, le mar. 20 juin 2023 12:15:23 +0300, a ecrit: > It seems that gnumach has grown better support for the fancier > SSE registers in its internal state tracking (i386_fpsave_state / > i386_xfp_save), but this doesn't seem to be exported to userland. It enables CR4_OSFXSR, which

SSE registers in thread state

2023-06-20 Thread Sergey Bugaev
Hello, it occurred to me that as far as userland is concerned, the FPU/SEE thread state only consists of i386_fp_save & i386_fp_regs, and userland simply uses frstor to restore it when sigreturning. It seems that gnumach has grown better support for the fancier SSE registers in its internal state