[pypy-commit] pypy ppc-vsx-support: yes, we should really read from the cpuinfo file, not from some other file!
plan_rich
pypy.commits at gmail.com
Tue Oct 25 10:27:55 EDT 2016
Author: Richard Plangger <planrichi at gmail.com>
Branch: ppc-vsx-support
Changeset: r87933:0a8db3e80616
Date: 2016-10-25 16:26 +0200
http://bitbucket.org/pypy/pypy/changeset/0a8db3e80616/
Log: yes, we should really read from the cpuinfo file, not from some
other file!
diff --git a/rpython/translator/platform/arch/s390x.py b/rpython/translator/platform/arch/s390x.py
--- a/rpython/translator/platform/arch/s390x.py
+++ b/rpython/translator/platform/arch/s390x.py
@@ -42,7 +42,7 @@
def s390x_detect_vx():
chunks = []
try:
- fd = os.open("/proc/self/auxv", os.O_RDONLY, 0644)
+ fd = os.open("/proc/cpuinfo", os.O_RDONLY, 0644)
try:
while True:
chunk = os.read(fd, 4096)
More information about the pypy-commit
mailing list