This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

XMM/XMM2 hwcap for i386



The appended patch adds entries for the XMM and XMM2 features of
modern ia32 processors and marks them also as important.

Ok to commit?
Andreas

2001-07-09  Andreas Jaeger  <aj@suse.de>

	* sysdeps/unix/sysv/linux/i386/dl-procinfo.c: Name entry for xmm2.

	* sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Add HWCAP_I386_XMM,
	HWCAP_I386_XMM2 to enum and mark them as important ones.

============================================================
Index: sysdeps/unix/sysv/linux/i386/dl-procinfo.c
--- sysdeps/unix/sysv/linux/i386/dl-procinfo.c	2001/07/06 04:56:16	1.2
+++ sysdeps/unix/sysv/linux/i386/dl-procinfo.c	2001/07/09 14:09:16
@@ -29,7 +29,7 @@
     "fpu", "vme", "de", "pse", "tsc", "msr", "pae", "mce",
     "cx8", "apic", "10", "sep", "mtrr", "pge", "mca", "cmov",
     "pat", "pse36", "psn", "19", "20", "21", "22", "mmx",
-    "osfxsr", "xmm", "26", "27", "28", "29", "30", "amd3d"
+    "osfxsr", "xmm", "xmm2", "27", "28", "29", "30", "amd3d"
   };
 
 const char _dl_x86_platforms[][5] =
============================================================
Index: sysdeps/unix/sysv/linux/i386/dl-procinfo.h
--- sysdeps/unix/sysv/linux/i386/dl-procinfo.h	2001/07/06 04:56:16	1.11
+++ sysdeps/unix/sysv/linux/i386/dl-procinfo.h	2001/07/09 14:09:16
@@ -90,10 +90,12 @@
   HWCAP_I386_FCMOV = 1 << 16,
   HWCAP_I386_MMX   = 1 << 23,
   HWCAP_I386_OSFXSR = 1 << 24,
+  HWCAP_I386_XMM   = 1 << 25,
+  HWCAP_I386_XMM2  = 1 << 26,
   HWCAP_I386_AMD3D = 1 << 31,
 
   /* XXX Which others to add here?  */
-  HWCAP_IMPORTANT = (HWCAP_I386_MMX)
+  HWCAP_IMPORTANT = (HWCAP_I386_MMX|HWCAP_I386_XMM|HWCAP_I386_XMM2)
 
 };
 

-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]