Hi,
Il 05/08/24 20:28, Sergey Bugaev ha scritto:
On Mon, Aug 5, 2024 at 9:23 PM Samuel Thibault wrote:
Luca Dariz, le lun. 05 août 2024 14:52:24 +0200, a ecrit:
Il 05/08/24 00:32, Samuel Thibault ha scritto:
Luca Dariz, le ven. 02 août 2024 17:32:34 +0200, a ecrit:
+#define XFP_STATE_BYTES
On Mon, Aug 5, 2024 at 9:23 PM Samuel Thibault wrote:
> Luca Dariz, le lun. 05 août 2024 14:52:24 +0200, a ecrit:
> > Il 05/08/24 00:32, Samuel Thibault ha scritto:
> > > Luca Dariz, le ven. 02 août 2024 17:32:34 +0200, a ecrit:
> > > > +#define XFP_STATE_BYTES (sizeof (struct i386_xfp_save))
> >
Hello,
Luca Dariz, le lun. 05 août 2024 14:52:24 +0200, a ecrit:
> Il 05/08/24 00:32, Samuel Thibault ha scritto:
> > Luca Dariz, le ven. 02 août 2024 17:32:34 +0200, a ecrit:
> > > +#define XFP_STATE_BYTES (sizeof (struct i386_xfp_save))
> >
> > That is not sufficient: depending on the sse level
Il 05/08/24 00:32, Samuel Thibault ha scritto:
Hello,
Luca Dariz, le ven. 02 août 2024 17:32:34 +0200, a ecrit:
+#define XFP_STATE_BYTES (sizeof (struct i386_xfp_save))
That is not sufficient: depending on the sse level and the saving style,
we have various amount of data to store. See fp_xsa
Hello,
Luca Dariz, le ven. 02 août 2024 17:32:34 +0200, a ecrit:
> +#define XFP_STATE_BYTES (sizeof (struct i386_xfp_save))
That is not sufficient: depending on the sse level and the saving style,
we have various amount of data to store. See fp_xsave_size computed in
init_fpu, we have to save all
* i386/i386/fpu.c: extend current getter and setter to support the
extended state; move the struct casting here to reuse the locking
and allocation logic for the thread state.
* i386/i386/fpu.h: update prototypes to accept generic thread state
* i386/i386/pcb.c: forward raw thread state to gett