summaryrefslogtreecommitdiffstats
path: root/sys/powerpc
diff options
context:
space:
mode:
authornwhitehorn <nwhitehorn@FreeBSD.org>2013-09-17 17:29:56 +0000
committernwhitehorn <nwhitehorn@FreeBSD.org>2013-09-17 17:29:56 +0000
commite96ca61463e645d2efaa7e730ec85a18413fbfa7 (patch)
treeebdbc49eb5fea05ddb4c74fe2f839572755c27bd /sys/powerpc
parentdf676be3eb50d3aa4ba1e0cc5d661724bc99973d (diff)
downloadFreeBSD-src-e96ca61463e645d2efaa7e730ec85a18413fbfa7.zip
FreeBSD-src-e96ca61463e645d2efaa7e730ec85a18413fbfa7.tar.gz
Add POWER7+ and POWER8 to the CPU ID table.
Approved by: re (kib)
Diffstat (limited to 'sys/powerpc')
-rw-r--r--sys/powerpc/include/spr.h2
-rw-r--r--sys/powerpc/powerpc/cpu.c6
2 files changed, 8 insertions, 0 deletions
diff --git a/sys/powerpc/include/spr.h b/sys/powerpc/include/spr.h
index 601b626..f99b67f 100644
--- a/sys/powerpc/include/spr.h
+++ b/sys/powerpc/include/spr.h
@@ -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
diff --git a/sys/powerpc/powerpc/cpu.c b/sys/powerpc/powerpc/cpu.c
index a4467a9..d7f8e2d 100644
--- a/sys/powerpc/powerpc/cpu.c
+++ b/sys/powerpc/powerpc/cpu.c
@@ -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,
OpenPOWER on IntegriCloud