diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2024-09-08 01:11:13 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2024-09-08 01:11:13 +0200 |
commit | 2275d5201e6660fb12fee1714d0926a0cfed7189 (patch) | |
tree | a6f264c2795c6753c33bab75d666c703b3624739 | |
parent | c1d8407710ad736974fce4373f9f992775a33516 (diff) | |
download | gnumach-2275d5201e6660fb12fee1714d0926a0cfed7189.tar.gz gnumach-2275d5201e6660fb12fee1714d0926a0cfed7189.tar.bz2 gnumach-2275d5201e6660fb12fee1714d0926a0cfed7189.zip |
fpu_set_state: accept fp_save_kind being incoherent if initialized is not set
-rw-r--r-- | i386/i386/fpu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/i386/i386/fpu.c b/i386/i386/fpu.c index cf7d51cd..3d146f71 100644 --- a/i386/i386/fpu.c +++ b/i386/i386/fpu.c @@ -407,7 +407,7 @@ fpu_set_state(const thread_t thread, void *state, int flavor) ASSERT_IPL(SPL0); if (fp_kind == FP_NO) return KERN_FAILURE; - if ((flavor == i386_XFLOAT_STATE) && (xfstate->fp_save_kind != fp_save_kind)) + if (flavor == i386_XFLOAT_STATE && xfstate->initialized && xfstate->fp_save_kind != fp_save_kind) return KERN_INVALID_ARGUMENT; #if NCPUS == 1 |