[PATCH] ntdll: The FPU control word for newly created threads is 0x27f.

Alexandre Julliard julliard at winehq.org
Wed Jun 16 12:36:56 CDT 2010


Henri Verbeet <hverbeet at codeweavers.com> writes:

> diff --git a/dlls/ntdll/thread.c b/dlls/ntdll/thread.c
> index 36f1499..0d383bd 100644
> --- a/dlls/ntdll/thread.c
> +++ b/dlls/ntdll/thread.c
> @@ -384,6 +384,7 @@ static void start_thread( struct startup_info *info )
>      thread_data->pthread_id = pthread_self();
>  
>      signal_init_thread( teb );
> +    signal_init_thread_fpu();
>      server_init_thread( func );
>      pthread_sigmask( SIG_UNBLOCK, &server_block_set, NULL );

This should be done inside signal_init_thread(), that's already meant
for platform-specific setup, there's no need to add a separate entry
point. Also you may want to do an fninit if new threads are not supposed
to inherit FPU state.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list