aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Whitehorn <nwhitehorn@FreeBSD.org>2013-09-17 17:29:56 +0000
committerNathan Whitehorn <nwhitehorn@FreeBSD.org>2013-09-17 17:29:56 +0000
commit5d548e66ff62d508512e20b93cac4b638182bc30 (patch)
treeebdbc49eb5fea05ddb4c74fe2f839572755c27bd
parent58aa4de0aabb8c904310943307f19be43a1638cf (diff)
downloadsrc-5d548e66ff62d508512e20b93cac4b638182bc30.tar.gz
src-5d548e66ff62d508512e20b93cac4b638182bc30.zip
Add POWER7+ and POWER8 to the CPU ID table.
Approved by: re (kib)
Notes
Notes: svn path=/head/; revision=255640
-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 601b62649e8b..f99b67f06559 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 a4467a917274..d7f8e2d4d052 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,