diff options
author | Andreas Sandberg <andreas.sandberg@arm.com> | 2015-12-14 17:10:36 +0000 |
---|---|---|
committer | Andreas Sandberg <andreas.sandberg@arm.com> | 2015-12-14 17:10:36 +0000 |
commit | 08754488a30da178effd0414f198462bf268d715 (patch) | |
tree | 1813e805a3ba8e294599e08eafad832993402420 /src/sim/System.py | |
parent | f5f04c312096e56f09ea27e84d3d2d2a97be97f9 (diff) | |
download | gem5-08754488a30da178effd0414f198462bf268d715.tar.xz |
sim: Add an option to forward work items to Python
There are cases where we want the Python world to handle work items
instead of the C++ world. However, that's currently not possible. This
changeset adds the forward_work_items option to the System class. Then
it is set to True, work items will generate workbegin/workend
simulation exists with the work item ID as the exit code and the old
C++ handling is completely bypassed.
--HG--
extra : rebase_source : 8de637a744fc4b6ff2bc763f00cdf8ddf2bff885
Diffstat (limited to 'src/sim/System.py')
-rw-r--r-- | src/sim/System.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sim/System.py b/src/sim/System.py index 74dfdca53..cdf97f8a9 100644 --- a/src/sim/System.py +++ b/src/sim/System.py @@ -73,6 +73,8 @@ class System(MemObject): cache_line_size = Param.Unsigned(64, "Cache line size in bytes") + exit_on_work_items = Param.Bool(True, "Exit from the simulation loop when " + "encountering work item annotations.") work_item_id = Param.Int(-1, "specific work item id") num_work_ids = Param.Int(16, "Number of distinct work item types") work_begin_cpu_id_exit = Param.Int(-1, |