linux-user: i386/signal: support FXSAVE fpstate on 32-bit emulation
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 6 Oct 2022 11:31:06 +0000 (13:31 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 11 Oct 2022 07:36:01 +0000 (09:36 +0200)
commit2796f290b5469a7f6749ea119a48bc17f489effd
tree49d29d4411a37921f4b22bafc347175a51f80a1f
parent5154d35beda383af8042061099a5cd2decf88e69
linux-user: i386/signal: support FXSAVE fpstate on 32-bit emulation

Linux can use FXSAVE to save/restore XMM registers even on 32-bit
systems.  This requires some care in order to keep the FXSAVE area
aligned to 16 bytes; for this reason, get_sigframe is changed to
pass the offset into the FXSAVE area rather than the full frame
size.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
linux-user/i386/signal.c