]> xenbits.xensource.com Git - xen.git/commit
x86/fpu: Create a typedef for the x87/SSE area inside "struct xsave_struct"
authorAlejandro Vallejo <alejandro.vallejo@cloud.com>
Thu, 1 Aug 2024 07:39:11 +0000 (09:39 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 1 Aug 2024 07:39:11 +0000 (09:39 +0200)
commit4fe446a42910cb6bf53ca3a8b7c2c6a64e2f192c
tree27a3ee2d6d74a0b959f193dfc03e15672f77bfaa
parentb1b017ffb7ad135ff7e726f85a870817c140406e
x86/fpu: Create a typedef for the x87/SSE area inside "struct xsave_struct"

Making the union non-anonymous would cause a lot of headaches, because a lot of
code relies on it being so, but it's possible to make a typedef of the anonymous
union so all callsites currently relying on typeof() can stop doing so directly.

This commit creates a `fpusse_t` typedef to the anonymous union at the head of
the XSAVE area and uses it instead of typeof().

No functional change.

Signed-off-by: Alejandro Vallejo <alejandro.vallejo@cloud.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/hvm/emulate.c
xen/arch/x86/i387.c
xen/arch/x86/include/asm/xstate.h
xen/arch/x86/xstate.c