Yu-hsin Wang has uploaded this change for review. ( https://gem5-review.googlesource.com/c/public/gem5/+/55485 )

Change subject: fastmodel: Correct the status of ThreadContext
......................................................................

fastmodel: Correct the status of ThreadContext

Change-Id: I356fbd2c924ea95d78265cee4ff8881120585efd
---
M src/arch/arm/fastmodel/iris/thread_context.cc
1 file changed, 15 insertions(+), 1 deletion(-)



diff --git a/src/arch/arm/fastmodel/iris/thread_context.cc b/src/arch/arm/fastmodel/iris/thread_context.cc
index 4a9c2db..93f67c2 100644
--- a/src/arch/arm/fastmodel/iris/thread_context.cc
+++ b/src/arch/arm/fastmodel/iris/thread_context.cc
@@ -264,10 +264,15 @@
         uint64_t sInstId, bool syncEc, std::string &error_message_out)
 {
     if (fields.at("RUNNING").getAsBool()) {
-        // If this is just simulation time starting up, don't do anything.
+ // If this is just simulation time starting up, don't do anything except
+        // status update.
+        activate();
         return iris::E_ok;
     }

+    // Update ThreadContext status.
+    suspend();
+
     // If simulation time has stopped for any reason, IRIS helpfully clears
// all stepping counters and we need to set them back. We might also need // to service events based on the current number of executed instructions.

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/55485
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: I356fbd2c924ea95d78265cee4ff8881120585efd
Gerrit-Change-Number: 55485
Gerrit-PatchSet: 1
Gerrit-Owner: Yu-hsin Wang <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to