Zhantong Qiu has uploaded this change for review. ( https://gem5-review.googlesource.com/c/public/gem5/+/65032?usp=email )

Change subject: stdlib: Added LOOPPOINT_END exit event
......................................................................

stdlib: Added LOOPPOINT_END exit event

Added LOOPPOINT_END exit event to detect exit message "reached the end
of the looppoint list".

Change-Id: I9e0118dc128065c0037d27b2261a147a7289c128
---
M src/python/gem5/simulate/exit_event.py
1 file changed, 15 insertions(+), 0 deletions(-)



diff --git a/src/python/gem5/simulate/exit_event.py b/src/python/gem5/simulate/exit_event.py
index 0890178..a59c3a7 100644
--- a/src/python/gem5/simulate/exit_event.py
+++ b/src/python/gem5/simulate/exit_event.py
@@ -48,6 +48,7 @@
     )
     SIMPOINT_BEGIN = "simpoint begins"
     MAX_INSTS = "number of instructions reached"
+    LOOPPOINT_END = "looppoint ends"

     @classmethod
     def translate_exit_status(cls, exit_string: str) -> "ExitEvent":
@@ -87,6 +88,8 @@
             return ExitEvent.SIMPOINT_BEGIN
         elif exit_string == "a thread reached the max instruction count":
             return ExitEvent.MAX_INSTS
+        elif exit_string == "reached the end of the looppoint list":
+            return ExitEvent.LOOPPOINT_END
         elif exit_string.endswith("will terminate the simulation.\n"):
             # This is for the traffic generator exit event
             return ExitEvent.EXIT

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/65032?usp=email To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: I9e0118dc128065c0037d27b2261a147a7289c128
Gerrit-Change-Number: 65032
Gerrit-PatchSet: 1
Gerrit-Owner: Zhantong Qiu <zt...@ucdavis.edu>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- gem5-dev@gem5.org
To unsubscribe send an email to gem5-dev-le...@gem5.org

Reply via email to