diff options
author | lloyd <[email protected]> | 2011-11-02 16:47:02 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2011-11-02 16:47:02 +0000 |
commit | 65ef8b96b574dcf106f57d90e125683a7b5a74ae (patch) | |
tree | 34b4d35ccc191519fcf07fb05dbdd3ef209a35cc | |
parent | a8dc602e3b2aad55c266ef41dd355e53c663a98b (diff) |
Add AltiVec detection for POWER7 processors
-rw-r--r-- | doc/log.txt | 2 | ||||
-rw-r--r-- | src/utils/cpuid.cpp | 2 |
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 |