[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-devel
Subject:    Re: PATCH: more capabilities for linux/cpu flags
From:       "Philipp Wollermann" <phil_wo () gmx ! net>
Date:       2003-06-29 10:52:51
[Download RAW message or body]

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@jet.franken.de>
To: <wine-patches@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;
>
>   }
>   }
>


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic