target/i386: Observe XSAVE state area offsets
commit3568987f78faff90829ea6c885bbdd5b083dc86c
authorDavid Edmondson <david.edmondson@oracle.com>
Mon, 5 Jul 2021 10:46:30 +0000 (5 11:46 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 6 Jul 2021 05:54:53 +0000 (6 07:54 +0200)
tree50b374ff67c1df41a493c92278bfe574c080c87a
parent5aa10ab1a08e4123dee214a2f854909efb07b45b
target/i386: Observe XSAVE state area offsets

Rather than relying on the X86XSaveArea structure definition directly,
the routines that manipulate the XSAVE state area should observe the
offsets declared in the x86_ext_save_areas array.

Currently the offsets declared in the array are derived from the
structure definition, resulting in no functional change.

Signed-off-by: David Edmondson <david.edmondson@oracle.com>
Message-Id: <20210705104632.2902400-7-david.edmondson@oracle.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/xsave_helper.c