[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] add xfloat thread state interface
From: |
Samuel Thibault |
Subject: |
Re: [PATCH] add xfloat thread state interface |
Date: |
Mon, 5 Aug 2024 00:32:13 +0200 |
User-agent: |
NeoMutt/20170609 (1.8.3) |
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 of that. We thus have to make get_state
check that the user-land buffer is large enough for that. And as I
mentioned on irc, the i386_xfloat_state stucture should contain the
fp_save_kind for glibc to know how to restore it.
Samuel
[PATCH v2 gnumach 1/3] add xfloat thread state interface, Luca Dariz, 2024/08/21