mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-03-23 06:25:12 +00:00
target-i386: xsave: Add FP and SSE bits to x86_ext_save_areas
Instead of treating the FP and SSE bits as special cases, add them to the x86_ext_save_areas array. This will simplify the code that calculates the supported xsave components and the size of the xsave area. Backports commit e3c9022b4e2b6a4deb6518361d2bbf33522b9198 from qemu
This commit is contained in:
parent
54bd827472
commit
08bfa41e1b
|
@ -578,13 +578,19 @@ typedef struct ExtSaveArea {
|
|||
static const ExtSaveArea x86_ext_save_areas[] = {
|
||||
// XSTATE_FP_BIT
|
||||
{
|
||||
0, 0,
|
||||
0, 0
|
||||
/* x87 FP state component is always enabled if XSAVE is supported */
|
||||
FEAT_1_ECX, CPUID_EXT_XSAVE,
|
||||
/* x87 state is in the legacy region of the XSAVE area */
|
||||
0,
|
||||
sizeof(X86LegacyXSaveArea) + sizeof(X86XSaveHeader),
|
||||
},
|
||||
// XSTATE_SSE_BIT
|
||||
{
|
||||
0, 0,
|
||||
0, 0,
|
||||
/* SSE state component is always enabled if XSAVE is supported */
|
||||
FEAT_1_ECX, CPUID_EXT_XSAVE,
|
||||
/* SSE state is in the legacy region of the XSAVE area */
|
||||
0,
|
||||
sizeof(X86LegacyXSaveArea) + sizeof(X86XSaveHeader),
|
||||
},
|
||||
// XSTATE_YMM_BIT
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue