aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--doc/log.txt2
-rw-r--r--src/utils/cpuid.cpp2
2 files changed, 4 insertions, 0 deletions
diff --git a/doc/log.txt b/doc/log.txt
index fd1cb1c12..696fa4ac9 100644
--- a/doc/log.txt
+++ b/doc/log.txt
@@ -16,6 +16,8 @@ Version 1.10.2, Not Yet Released
replace will allow running it under Python 2.5::
perl -pi -e 's/except (.*) as (.*):/except $1, $2:/g' configure.py
+* Add AltiVec detection for IBM POWER7 processors.
+
* Don't set a soname on OpenBSD, as it doesn't support it (PR 158)
* Fix a configure.py incompatability with the subprocess module
diff --git a/src/utils/cpuid.cpp b/src/utils/cpuid.cpp
index cb6fdaba5..917789f65 100644
--- a/src/utils/cpuid.cpp
+++ b/src/utils/cpuid.cpp
@@ -128,6 +128,7 @@ bool altivec_check_pvr_emul()
const u16bit PVR_G5_970MP = 0x0044;
const u16bit PVR_G5_970GX = 0x0045;
const u16bit PVR_POWER6 = 0x003E;
+ const u16bit PVR_POWER7 = 0x003F;
const u16bit PVR_CELL_PPU = 0x0070;
// Motorola produced G4s with PVR 0x800[0123C] (at least)
@@ -147,6 +148,7 @@ bool altivec_check_pvr_emul()
altivec_capable |= (pvr == PVR_G5_970MP);
altivec_capable |= (pvr == PVR_G5_970GX);
altivec_capable |= (pvr == PVR_POWER6);
+ altivec_capable |= (pvr == PVR_POWER7);
altivec_capable |= (pvr == PVR_CELL_PPU);
#endif