Author: Richard Plangger <[email protected]>
Branch: ppc-vsx-support
Changeset: r85754:0ccc38247048
Date: 2016-07-18 16:19 +0200
http://bitbucket.org/pypy/pypy/changeset/0ccc38247048/
Log: change runpack("LL", ...) to 2x runpack("L", ...), translation issue
diff --git a/rpython/jit/backend/ppc/detect_feature.py
b/rpython/jit/backend/ppc/detect_feature.py
--- a/rpython/jit/backend/ppc/detect_feature.py
+++ b/rpython/jit/backend/ppc/detect_feature.py
@@ -15,10 +15,12 @@
def detect_vsx_linux():
with open('/proc/self/auxv', 'rb') as fd:
while True:
- buf = fd.read(16)
- if not buf:
+ buf = fd.read(8)
+ buf2 = fd.read(8)
+ if not buf or not buf2:
break
- key, value = runpack("LL", buf)
+ key = runpack("L", buf)
+ value = runpack("L", buf2)
if key == AT_HWCAP:
if value & PPC_FEATURE_HAS_ALTIVEC:
return True
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit