svn commit: r255640 - in head/sys/powerpc: include powerpc

Nathan Whitehorn nwhitehorn at FreeBSD.org
Tue Sep 17 17:29:57 UTC 2013


Author: nwhitehorn
Date: Tue Sep 17 17:29:56 2013
New Revision: 255640
URL: http://svnweb.freebsd.org/changeset/base/255640

Log:
  Add POWER7+ and POWER8 to the CPU ID table.
  
  Approved by:	re (kib)

Modified:
  head/sys/powerpc/include/spr.h
  head/sys/powerpc/powerpc/cpu.c

Modified: head/sys/powerpc/include/spr.h
==============================================================================
--- head/sys/powerpc/include/spr.h	Tue Sep 17 17:29:07 2013	(r255639)
+++ head/sys/powerpc/include/spr.h	Tue Sep 17 17:29:56 2013	(r255640)
@@ -168,6 +168,8 @@
 #define	  IBMPOWER3PLUS		  0x0041
 #define	  IBM970MP		  0x0044
 #define	  IBM970GX		  0x0045
+#define	  IBMPOWER7PLUS		  0x004a
+#define	  IBMPOWER8		  0x004b
 #define	  MPC860		  0x0050
 #define	  IBMCELLBE		  0x0070
 #define	  MPC8240		  0x0081

Modified: head/sys/powerpc/powerpc/cpu.c
==============================================================================
--- head/sys/powerpc/powerpc/cpu.c	Tue Sep 17 17:29:07 2013	(r255639)
+++ head/sys/powerpc/powerpc/cpu.c	Tue Sep 17 17:29:56 2013	(r255640)
@@ -141,6 +141,12 @@ static const struct cputab models[] = {
         { "IBM POWER7",		IBMPOWER7,	REVFMT_MAJMIN,
 	   PPC_FEATURE_64 | PPC_FEATURE_HAS_ALTIVEC | PPC_FEATURE_HAS_FPU,
 	   NULL },
+        { "IBM POWER7+",	IBMPOWER7PLUS,	REVFMT_MAJMIN,
+	   PPC_FEATURE_64 | PPC_FEATURE_HAS_ALTIVEC | PPC_FEATURE_HAS_FPU,
+	   NULL },
+        { "IBM POWER8",		IBMPOWER8,	REVFMT_MAJMIN,
+	   PPC_FEATURE_64 | PPC_FEATURE_HAS_ALTIVEC | PPC_FEATURE_HAS_FPU,
+	   NULL },
         { "Motorola PowerPC 7400",	MPC7400,	REVFMT_MAJMIN,
 	   PPC_FEATURE_HAS_ALTIVEC | PPC_FEATURE_HAS_FPU, cpu_6xx_setup },
         { "Motorola PowerPC 7410",	MPC7410,	REVFMT_MAJMIN,


More information about the svn-src-all mailing list