PATCH: more capabilities for linux/cpu flags

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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;
 
 		}
 	}


[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux