Andreas Sandberg has uploaded a new patch set (#10). (
https://gem5-review.googlesource.com/c/public/gem5/+/16002 )
Change subject: configs: Fix Python 3 iterator and exec compatibility issues
..
configs: Fix Python 3
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-Change-Id: I5dea08bf0558cfca57897a124cb131c78114e59e
Gerrit-Change-Number: 15982
Gerrit-PatchSet: 10
Gerrit-Owner: Andreas Sandberg
Gerrit-Reviewer: Andreas Sandberg
Gerrit-Reviewer: Ciro
evaluation context to the
unresolved Parent.any proxy without first unproxying it.
It seems like this bug depends on the graph traversal order and I have
so far only seen it when compiling gem5 with Python 3.
Change-Id: Iea12cc138765e70bfd6bb776b1efa012364db066
Signed-off-by: Andreas Sandberg
Andreas Sandberg has submitted this change and it was merged. (
https://gem5-review.googlesource.com/c/public/gem5/+/15993 )
Change subject: python: Fix params/proxy import loop
..
python: Fix params/proxy import loop
Andreas Sandberg has submitted this change and it was merged. (
https://gem5-review.googlesource.com/c/public/gem5/+/16003 )
Change subject: scons: Add support for specifying Python version
..
scons: Add support
Andreas Sandberg has submitted this change and it was merged. (
https://gem5-review.googlesource.com/c/public/gem5/+/15983 )
Change subject: python: Enforce absolute imports for Python 3 compatibility
..
python: Enforce
helper that
links with the same library as gem5 to generate byte code that is
guaranteed to work in gem5's Python interpreter.
Change-Id: I665b0f2078726d4c055d74a3e668a580fc613b59
Signed-off-by: Andreas Sandberg
---
M src/SConscript
A src/python/marshal.cc
2 files changed, 87 insertions(+), 10
Andreas Sandberg has submitted this change and it was merged. (
https://gem5-review.googlesource.com/c/public/gem5/+/15994 )
Change subject: python: Add fallbacks for packages that have been renamed
..
python: Add fallbacks
Andreas Sandberg has submitted this change and it was merged. (
https://gem5-review.googlesource.com/c/public/gem5/+/16000 )
Change subject: python: Fix param -> int conversion issues
..
python: Fix param -> int conv
Andreas Sandberg has submitted this change and it was merged. (
https://gem5-review.googlesource.com/c/public/gem5/+/16001 )
Change subject: python: Add missing operators to NumericParamValue
..
python: Add missing operators
Andreas Sandberg has submitted this change and it was merged. (
https://gem5-review.googlesource.com/c/public/gem5/+/15992 )
Change subject: python: Make iterator handling Python 3 compatible
..
python: Make iterator handling
: I2bd86662aee9891bbd89aed7ebe20b827b5528bd
Signed-off-by: Andreas Sandberg
---
M src/python/m5/params.py
1 file changed, 54 insertions(+), 4 deletions(-)
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/16001
To unsubscribe, or for help writing mail filters, visit
https://gem5
Change-Id: I2de6c9906d3bb7616f12ada6728b9e4b1928511c
Signed-off-by: Andreas Sandberg
---
M src/cpu/BaseCPU.py
M src/python/m5/params.py
2 files changed, 4 insertions(+), 1 deletion(-)
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/16000
To unsubscribe, or for help writin
: I2bd86662aee9891bbd89aed7ebe20b827b5528bd
Signed-off-by: Andreas Sandberg
---
M src/python/m5/params.py
1 file changed, 49 insertions(+), 5 deletions(-)
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/16001
To unsubscribe, or for help writing mail filters, visit
https://gem5
location.
Change-Id: I1f4c00d66f85a9c99f50fe4d746b69dd82b60b4b
Signed-off-by: Andreas Sandberg
---
M SConstruct
1 file changed, 23 insertions(+), 7 deletions(-)
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/16003
To unsubscribe, or for help writing mail filters, visit
helper that
links with the same library as gem5 to generate byte code that is
guaranteed to work in gem5's Python interpreter.
Change-Id: I665b0f2078726d4c055d74a3e668a580fc613b59
Signed-off-by: Andreas Sandberg
---
M SConstruct
M src/SConscript
A src/python/marshal.cc
3 files changed, 85 insertions
helper that
links with the same library as gem5 to generate byte code that is
guaranteed to work in gem5's Python interpreter.
Change-Id: I665b0f2078726d4c055d74a3e668a580fc613b59
Signed-off-by: Andreas Sandberg
---
M SConstruct
M src/SConscript
A src/python/marshal.cc
3 files changed, 82 insertions
location.
Change-Id: I1f4c00d66f85a9c99f50fe4d746b69dd82b60b4b
Signed-off-by: Andreas Sandberg
---
M SConstruct
1 file changed, 23 insertions(+), 7 deletions(-)
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/16003
To unsubscribe, or for help writing mail filters, visit
python interfaces but are still
not part of the primary code base.
Anyway, I think I know how to make what I was initially after work without
having to do anything overly weird and without any additional machinery. Thanks!
Gabe
On Wed, Feb 20, 2019 at 8:38 AM Andreas Sandberg
mailto:andreas.sandb
Andreas Sandberg has submitted this change and it was merged. (
https://gem5-review.googlesource.com/c/public/gem5/+/15990 )
Change subject: python: Fix Param initialization issue in Python 3
..
python: Fix Param
Hi Gabe,
I think this might make sense. As you have probably seen already, the
main intention of the _m5 namespace is to hide the potentially clunky
C++-like interfaces from the normal m5 namespace. A common design
pattern for native Python packages used to be to have a native namespace
that
helper that
links with the same library as gem5 to generate byte code that is
guaranteed to work in gem5's Python interpreter.
Change-Id: I665b0f2078726d4c055d74a3e668a580fc613b59
Signed-off-by: Andreas Sandberg
---
M SConstruct
A site_scons/site_tools/SConscript
A site_scons/site_tools/marshall.cc
M
location.
Change-Id: I1f4c00d66f85a9c99f50fe4d746b69dd82b60b4b
Signed-off-by: Andreas Sandberg
---
M SConstruct
1 file changed, 24 insertions(+), 7 deletions(-)
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/16003
To unsubscribe, or for help writing mail filters, visit
Andreas Sandberg has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/16422
Change subject: scons: Marshal Python sources using the same Python as gem5
..
scons: Marshal Python sources
..
python: Add __bool__ helpers in addition to __nonzero__
Python 3 uses __bool__ instead of __nonzero__ when performing a
Boolean comparison.
Change-Id: I85185bbe136ecae67346fa23569e24edd7329222
Signed-off-by: Andreas Sandberg
---
M
Andreas Sandberg has submitted this change and it was merged. (
https://gem5-review.googlesource.com/c/public/gem5/+/15991 )
Change subject: python: Remove uses of tuple unpacking in function params
..
python: Remove uses
Andreas Sandberg has submitted this change and it was merged. (
https://gem5-review.googlesource.com/c/public/gem5/+/15989 )
Change subject: python: Replace deprecated repr syntax
..
python: Replace deprecated repr syntax
Andreas Sandberg has submitted this change and it was merged. (
https://gem5-review.googlesource.com/c/public/gem5/+/15995 )
Change subject: python: Switch from using compare to key in list sort
..
python: Switch from using
..
python: Replace deprecated repr syntax
Change-Id: I5f9538cf2ca5ee17c51e7c5388d3aef363fcfa54
Signed-off-by: Andreas Sandberg
---
M src/python/m5/util/grammar.py
M src/python/m5/util/multidict.py
M src/python/m5/util/sorteddict.py
3
Andreas Sandberg has submitted this change and it was merged. (
https://gem5-review.googlesource.com/c/public/gem5/+/15987 )
Change subject: python: Replace dict.has_key with 'key in dict'
..
python: Replace dict.has_key
Andreas Sandberg has submitted this change and it was merged. (
https://gem5-review.googlesource.com/c/public/gem5/+/16402 )
Change subject: python: Add missing defines import
..
python: Add missing defines import
'
..
python: Replace dict.has_key with 'key in dict'
Python 3 has removed dict.has_key in favour of 'key in dict'.
Change-Id: I9852a5f57d672bea815308eb647a0ce45624fad5
Signed-off-by: Andreas Sandberg
---
M src/SConscript
M src/arch
Andreas Sandberg has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/16402
Change subject: python: Add missing defines import
..
python: Add missing defines import
The _check_tracing
Andreas Sandberg has submitted this change and it was merged. (
https://gem5-review.googlesource.com/c/public/gem5/+/15984 )
Change subject: python: Replace DictMixin with Mapping / MutableMapping
..
python: Replace DictMixin
Andreas Sandberg has submitted this change and it was merged. (
https://gem5-review.googlesource.com/c/public/gem5/+/16362 )
Change subject: python: Replace orderdict with collections.OrderedDict
..
python: Replace orderdict
Andreas Sandberg has submitted this change and it was merged. (
https://gem5-review.googlesource.com/c/public/gem5/+/15986 )
Change subject: python: Update use of exec to work with Python 3
..
python: Update use of exec
Andreas Sandberg has submitted this change and it was merged. (
https://gem5-review.googlesource.com/c/public/gem5/+/15985 )
Change subject: python: Switch to using open instead of file
..
python: Switch to using open instead
Andreas Sandberg has submitted this change and it was merged. (
https://gem5-review.googlesource.com/c/public/gem5/+/16022 )
Change subject: tests: Rewrite Makefiles for pthreads test
..
tests: Rewrite Makefiles for pthreads
..
python: Switch to using open instead of file
Python 3 doesn't support the file(name, mode) syntax which has been
deprecated in favour of open.
Change-Id: I35ef8690d97a5243860a64ff985fd22fa86253f1
Signed-off-by: Andreas Sandberg
---
M src/python/importer.py
M src/python/m5
..
python: Enforce absolute imports for Python 3 compatibility
Change-Id: Ia88d7fd472f7aed9b97df81468211384981bf6c6
Signed-off-by: Andreas Sandberg
---
M src/python/importer.py
M src/python/m5/SimObject.py
M src/python/m5/__init__.py
M src
-by: Andreas Sandberg
---
M src/python/m5/debug.py
1 file changed, 10 insertions(+), 14 deletions(-)
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/15984
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project
Andreas Sandberg has submitted this change and it was merged. (
https://gem5-review.googlesource.com/c/public/gem5/+/15981 )
Change subject: python: Don't assume SimObjects live in the global namespace
..
python: Don't assume
Andreas Sandberg has submitted this change and it was merged. (
https://gem5-review.googlesource.com/c/public/gem5/+/16302 )
Change subject: arch-mips: Remove unused Python file
..
arch-mips: Remove unused Python file
Change
Andreas Sandberg has submitted this change and it was merged. (
https://gem5-review.googlesource.com/c/public/gem5/+/15980 )
Change subject: python: Make exception handling Python 3 safe
..
python: Make exception handling
Andreas Sandberg has submitted this change and it was merged. (
https://gem5-review.googlesource.com/c/public/gem5/+/15979 )
Change subject: python: Fix native module initialisation on Python 3
..
python: Fix native module
Andreas Sandberg has uploaded a new patch set (#3). (
https://gem5-review.googlesource.com/c/public/gem5/+/15985 )
Change subject: python: Switch to using open instead of file
..
python: Switch to using open instead of file
Andreas Sandberg has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/16302
Change subject: arch-mips: Remove unused Python file
..
arch-mips: Remove unused Python file
Change-Id
On 07/02/2019 15:28, Jason Lowe-Power wrote:
> Hi all,
>
> Based off of the conversation on [1] I think we should have a broader
> discussion of how to include test code.
>
> We have a number of different options with tradeoffs. I'd like to get this
> right the first time and not have to go back
Andreas Sandberg has submitted this change and it was merged. (
https://gem5-review.googlesource.com/c/public/gem5/+/15976 )
Change subject: tests: Add a helper to run external scripts
..
tests: Add a helper to run external
Andreas Sandberg has submitted this change and it was merged. (
https://gem5-review.googlesource.com/c/public/gem5/+/15978 )
Change subject: python: Remove getCode() type workaround
..
python: Remove getCode() type workaround
Andreas Sandberg has submitted this change and it was merged. (
https://gem5-review.googlesource.com/c/public/gem5/+/15977 )
Change subject: sim: Prepare C++ side for Python 3
..
sim: Prepare C++ side for Python 3
Python 3
Andreas Sandberg has submitted this change and it was merged. (
https://gem5-review.googlesource.com/c/public/gem5/+/15975 )
Change subject: tests: Don't override tick rate in Ruby tests
..
tests: Don't override tick rate
Andreas Sandberg has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/16022
Change subject: tests: Rewrite Makefiles for pthreads test
..
tests: Rewrite Makefiles for pthreads test
Hi Everyone,
I managed to find some time to do some gem5 hacking recently and decided
it would be interesting to see what it would take to get gem5 to work
with Python 3. It turns out it doesn't take that much work to get most
things to work. I got to a point where thins seem to work, at least
Andreas Sandberg has uploaded a new patch set (#2). (
https://gem5-review.googlesource.com/c/public/gem5/+/15982 )
Change subject: RFC: python: Make metaclass declarations Python 3 safe
..
RFC: python: Make metaclass
Andreas Sandberg has uploaded a new patch set (#2). (
https://gem5-review.googlesource.com/c/public/gem5/+/15976 )
Change subject: tests: Add a helper to run external scripts
..
tests: Add a helper to run external scripts
Andreas Sandberg has uploaded a new patch set (#2). (
https://gem5-review.googlesource.com/c/public/gem5/+/15988 )
Change subject: python: Add Python 3 workarounds for long
..
python: Add Python 3 workarounds for long
Python
Andreas Sandberg has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/16002
Change subject: WIP: configs: Make example configs to Python 3 compliant
..
WIP: configs: Make example
Andreas Sandberg has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/16004
Change subject: RFC: python: Fix unproxying issues
..
RFC: python: Fix unproxying issues
There are cases
Andreas Sandberg has uploaded a new patch set (#2). (
https://gem5-review.googlesource.com/c/public/gem5/+/15983 )
Change subject: python: Enforce absolute imports for Python 3 compatibility
..
python: Enforce absolute
Andreas Sandberg has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/16003
Change subject: RFC: scons: Add hackish support for Python 3.5
..
RFC: scons: Add hackish support for Python
Andreas Sandberg has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/16001
Change subject: python: Add missing operators to NumericParamValue
..
python: Add missing operators
Andreas Sandberg has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/15999
Change subject: tests: Update test scripts to work with Python 3
..
tests: Update test scripts to work
Andreas Sandberg has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/16000
Change subject: python: Fix param -> int conversion issues
..
python: Fix param -> int conversion
Andreas Sandberg has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/15997
Change subject: python: Use __name__ instead of func_name for Py3 compat
..
python: Use __name__ instead
Andreas Sandberg has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/15995
Change subject: python: Switch from using compare to key in list sort
..
python: Switch from using compare
Andreas Sandberg has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/15993
Change subject: python: Fix params/proxy import loop
..
python: Fix params/proxy import loop
Andreas Sandberg has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/15996
Change subject: python: Add __bool__ helpers in addition to __nonzero__
..
python: Add __bool__ helpers
Andreas Sandberg has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/15991
Change subject: python: Remove uses of tuple unpacking in function params
..
python: Remove uses of tuple
Andreas Sandberg has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/15986
Change subject: python: Update use of exec to work with Python 3
..
python: Update use of exec to work
Andreas Sandberg has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/15998
Change subject: python: Stop using basestring to test for strings
..
python: Stop using basestring to test
Andreas Sandberg has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/15981
Change subject: python: Don't assume SimObjects live in the global namespace
..
python: Don't assume
Andreas Sandberg has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/15992
Change subject: python: Make iterator handling Python 3 compatible
..
python: Make iterator handling Python 3
Andreas Sandberg has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/15990
Change subject: python: Fix Param initialization issue in Python 3
..
python: Fix Param initialization issue
Andreas Sandberg has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/15994
Change subject: python: Add fallbacks for packages that have been renamed
..
python: Add fallbacks
Andreas Sandberg has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/15978
Change subject: python: Remove getCode() type workaround
..
python: Remove getCode() type workaround
Python
Andreas Sandberg has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/15975
Change subject: tests: Don't override tick rate in Ruby tests
..
tests: Don't override tick rate in Ruby
Andreas Sandberg has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/15982
Change subject: RFC: python: Make metaclass declarations Python 3 safe
..
RFC: python: Make metaclass
Andreas Sandberg has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/15989
Change subject: python: Replace deprecated repr syntax
..
python: Replace deprecated repr syntax
Change-Id
Andreas Sandberg has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/15984
Change subject: python: Replace DictMixin with Mapping / MutableMapping
..
python: Replace DictMixin
Andreas Sandberg has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/15985
Change subject: python: Switch to using open instead of file
..
python: Switch to using open instead of file
Andreas Sandberg has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/15976
Change subject: tests: Add a helper to run external scripts
..
tests: Add a helper to run external scripts
Andreas Sandberg has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/15987
Change subject: python: Replace dict.has_key with 'key in dict'
..
python: Replace dict.has_key with 'key
Andreas Sandberg has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/15988
Change subject: python: Add Python 3 workarounds for long
..
python: Add Python 3 workarounds for long
Andreas Sandberg has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/15983
Change subject: python: Enforce absolute imports for Python 3 compatibility
..
python: Enforce absolute
Andreas Sandberg has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/15980
Change subject: python: Make exception handling Python 3 safe
..
python: Make exception handling Python 3
Andreas Sandberg has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/15977
Change subject: sim: Prepare C++ side for Python 3
..
sim: Prepare C++ side for Python 3
Python 3 uses wide
Andreas Sandberg has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/15979
Change subject: python: Fix native module initialisation on Python 3
..
python: Fix native module
Hi all,
In practice, C++14 support should mean g++ version 5 or above or clang 3.4 or
above. Clang supports all C++17 features from version 5, but most features
should be supported from version 3.9 (a large subset is supported in 3.8). GCC
version 7 and above seems to support most of C++17.
Andreas Sandberg has submitted this change and it was merged. (
https://gem5-review.googlesource.com/c/public/gem5/+/15438 )
Change subject: sim-se, arch-arm: Add support for getdents64
..
sim-se, arch-arm: Add support
Andreas Sandberg has submitted this change and it was merged. (
https://gem5-review.googlesource.com/c/public/gem5/+/15435 )
Change subject: sim-se: Refactor clone to avoid most ifdefs
..
sim-se: Refactor clone to avoid most
Andreas Sandberg has submitted this change and it was merged. (
https://gem5-review.googlesource.com/c/public/gem5/+/15436 )
Change subject: arch-arm, sim-se: Fix incorrect SP handling in clone
..
arch-arm, sim-se: Fix
Andreas Sandberg has submitted this change and it was merged. (
https://gem5-review.googlesource.com/c/public/gem5/+/15437 )
Change subject: arch-arm, sim-se: Add support for TLS in clone
..
arch-arm, sim-se: Add support
Andreas Sandberg has submitted this change and it was merged. (
https://gem5-review.googlesource.com/c/public/gem5/+/15417 )
Change subject: sim-se: Correctly calculate next PC in clone
..
sim-se: Correctly calculate next PC
Andreas Sandberg has submitted this change and it was merged. (
https://gem5-review.googlesource.com/c/public/gem5/+/15416 )
Change subject: sim-se: Use CONFIG_CLONE_BACKWARDS for Arm
..
sim-se: Use CONFIG_CLONE_BACKWARDS
Andreas Sandberg has submitted this change and it was merged. (
https://gem5-review.googlesource.com/c/public/gem5/+/15415 )
Change subject: arch-arm, sim-se: Wire up syscalls needed for pthreads
..
arch-arm, sim-se: Wire up
Andreas Sandberg has uploaded a new patch set (#2). (
https://gem5-review.googlesource.com/c/public/gem5/+/15438 )
Change subject: sim-se, arch-arm: Add support for getdents64
..
sim-se, arch-arm: Add support for getdents64
Andreas Sandberg has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/15437
Change subject: arch-arm, sim-se: Add support for TLS in clone
..
arch-arm, sim-se: Add support for TLS
Andreas Sandberg has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/15435
Change subject: sim-se: Refactor clone to avoid most ifdefs
..
sim-se: Refactor clone to avoid most ifdefs
Andreas Sandberg has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/15436
Change subject: arch-arm, sim-se: Fix incorrect SP handling in clone
..
arch-arm, sim-se: Fix incorrect SP
201 - 300 of 1869 matches
Mail list logo