aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils/cpuid.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2014-11-16 23:44:35 +0000
committerlloyd <[email protected]>2014-11-16 23:44:35 +0000
commitb5e2a1ce3044084e43ff523f148b0cc8e95ce283 (patch)
treeca54e7bde7d53a6dcdb6303adb5f4157656c6dc8 /src/lib/utils/cpuid.cpp
parentc0cba50e1bc33e0279895800c961ded4ba102e14 (diff)
Fix warnings in Altivec header and add AltiVec detection for POWER8
Diffstat (limited to 'src/lib/utils/cpuid.cpp')
-rw-r--r--src/lib/utils/cpuid.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/utils/cpuid.cpp b/src/lib/utils/cpuid.cpp
index c49eb0752..18ef4b959 100644
--- a/src/lib/utils/cpuid.cpp
+++ b/src/lib/utils/cpuid.cpp
@@ -124,6 +124,7 @@ bool altivec_check_pvr_emul()
const u16bit PVR_G5_970GX = 0x0045;
const u16bit PVR_POWER6 = 0x003E;
const u16bit PVR_POWER7 = 0x003F;
+ const u16bit PVR_POWER8 = 0x004B;
const u16bit PVR_CELL_PPU = 0x0070;
// Motorola produced G4s with PVR 0x800[0123C] (at least)
@@ -144,6 +145,7 @@ bool altivec_check_pvr_emul()
altivec_capable |= (pvr == PVR_G5_970GX);
altivec_capable |= (pvr == PVR_POWER6);
altivec_capable |= (pvr == PVR_POWER7);
+ altivec_capable |= (pvr == PVR_POWER8);
altivec_capable |= (pvr == PVR_CELL_PPU);
#endif