Let the user execute a file just before 'Simulation.run'
Review Request #1455 - Created Sept. 28, 2012 and updated
| Information | |
|---|---|
| Lluís Vilanova | |
| gem5 | |
| Reviewers | |
| Default | |
Let the user execute a file just before 'Simulation.run'. This file can be used, for example, to set parameters that are not available through the command-line options. Patch was applied on top of latest development version, so I don't understand how this can fail (my previous patches in the MQ do not touch Options.py).
Issue Summary
1
1
0
0
| Description | From | Last Updated | Status |
|---|---|---|---|
| Should this be 'testsys' not 'test_sys'? | Steve Reinhardt | Jan. 7, 2013, 3:08 a.m. | Open |
Review request changed
Updated (Sept. 28, 2012, 3:47 a.m.)
Description: |
|
|---|
Posted (Sept. 28, 2012, 5:12 a.m.)
This patch does not apply cleanly.
Review request changed
Updated (Oct. 3, 2012, 1:29 a.m.)
Review request changed
Updated (Oct. 23, 2012, 4:22 a.m.)
Change Summary:
Rebase on r9308 and move "post-script" invocation into "Simulation.run", just before "m5.instantiate".
Diff: |
Revision 3 (+12) |
|---|
this seems fine to me, anyone else have some input?
Posted (Jan. 7, 2013, 3:08 a.m.)
In general I would prefer an approach where unique simulation requirements were handled by a unique top-level script; originally files like se.py were intended merely to be examples that would be customized as needed (hence the directory name "configs/example"). If the configuration code were a bit more modular, such that those example files were only a handful of lines of code (not 100+), I would push harder to keep that vision. If I'm the only one that feels that way, though, I won't oppose this.
-
configs/common/Simulation.py (Diff revision 3) -
Should this be 'testsys' not 'test_sys'?
Posted (Jan. 7, 2013, 4:44 a.m.)
I agree with Steve. I'm not at all a fan of adding more cruft to the simulation scripts. It's almost impossible to understand them already. What we really ought to do is to rewrite them and to make them simpler to reuse and customize instead of trying to do everything in the example configuration.
