PATCH: more capabilities for linux/cpu flags

Philipp Wollermann phil_wo at gmx.net
Sun Jun 29 05:52:51 CDT 2003


Hi,

according to MSDN
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/ba
se/isprocessorfeaturepresent.asp):

      PF_XMMI_INSTRUCTIONS_AVAILABLE The SSE instruction set is available.
      PF_XMMI64_INSTRUCTIONS_AVAILABLE The SSE2 instruction set is
available.


Philipp

----- Original Message -----
From: "Marcus Meissner" <marcus at jet.franken.de>
To: <wine-patches at winehq.com>
Sent: Sunday, June 29, 2003 12:35 PM
Subject: PATCH: more capabilities for linux/cpu flags


> Hi,
>
> This adds 2 more checks for PF_xxx flag CPU detection for Linux.
>
> Ciao, Marcus
>
> Changelog:
> Add tests for PF_AMD3D and PF_XMMI instructions. (Not sure if
> XMMI instructions are SSE or SSE2).
>
> Index: misc/cpu.c
> ===================================================================
> RCS file: /home/wine/wine/misc/cpu.c,v
> retrieving revision 1.32
> diff -u -r1.32 cpu.c
> --- misc/cpu.c 21 May 2003 18:24:34 -0000 1.32
> +++ misc/cpu.c 29 Jun 2003 10:32:11 -0000
> @@ -315,6 +315,13 @@
>   PF[PF_MMX_INSTRUCTIONS_AVAILABLE] = TRUE;
>   if (strstr(value,"tsc"))
>   PF[PF_RDTSC_INSTRUCTION_AVAILABLE] = TRUE;
> + if (strstr(value,"3dnow"))
> + PF[PF_AMD3D_INSTRUCTIONS_AVAILABLE] = TRUE;
> + /* Not sure if XMMI is sse2 or sse, stay on
> + * the safe side.
> + */
> + if (strstr(value,"sse2"))
> + PF[PF_XMMI_INSTRUCTIONS_AVAILABLE] = TRUE;
>
>   }
>   }
>




More information about the wine-devel mailing list