From e81aa1cd860fc4a0c899c3601d098e4ec3eb8464 Mon Sep 17 00:00:00 2001 From: "Bobby R. Bruce" Date: Tue, 6 Dec 2022 10:48:48 -0800 Subject: [PATCH] configs: Alter x86-npb-benchmarks.py to exit after WORKEND While the config script will still function without exiting the SimLoop after the "WORKEND" exit event, there's no need for the simulation to continue beyond this point. Change-Id: I60691215e9516fa1eeb8b8502f2bc5a09de2969b Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/66513 Tested-by: kokoro Reviewed-by: Jason Lowe-Power Maintainer: Bobby Bruce --- configs/example/gem5_library/x86-npb-benchmarks.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/configs/example/gem5_library/x86-npb-benchmarks.py b/configs/example/gem5_library/x86-npb-benchmarks.py index 2cb314303f..ff363e449c 100644 --- a/configs/example/gem5_library/x86-npb-benchmarks.py +++ b/configs/example/gem5_library/x86-npb-benchmarks.py @@ -237,12 +237,11 @@ def handle_workbegin(): # marked by `workend`. # We exepect that ROI ends with `workend` or `simulate() limit reached`. -# Otherwise the simulation ended unexpectedly. def handle_workend(): print("Dump stats at the end of the ROI!") m5.stats.dump() - yield False + yield True simulator = Simulator(