ZHENGRONG WANG has uploaded this change for review. ( https://gem5-review.googlesource.com/c/public/gem5/+/56812 )

Change subject: configs: Call createThreads() for FutureCPUs.
......................................................................

configs: Call createThreads() for FutureCPUs.

When using fast forwarding, createThreads() is not
called upon FutureCPUs. This causes segment fault
as the decoder is initialized in createThreads() and
needed when instantiating CPUs.

This commit basically fixes this by invoking
createThreads() on FutureCPUs after they are created.

Change-Id: I812d18f06878f9fc3fa2183a2c8a64d316413398
---
M configs/common/Simulation.py
1 file changed, 18 insertions(+), 0 deletions(-)



diff --git a/configs/common/Simulation.py b/configs/common/Simulation.py
index 3b9efc0..2416773 100644
--- a/configs/common/Simulation.py
+++ b/configs/common/Simulation.py
@@ -488,6 +488,7 @@
                     options.indirect_bp_type)
                 switch_cpus[i].branchPred.indirectBranchPred = \
                     IndirectBPClass()
+            switch_cpus[i].createThreads()

         # If elastic tracing is enabled attach the elastic trace probe
         # to the switch CPUs

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/56812
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: I812d18f06878f9fc3fa2183a2c8a64d316413398
Gerrit-Change-Number: 56812
Gerrit-PatchSet: 1
Gerrit-Owner: ZHENGRONG WANG <seanyukig...@gmail.com>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- gem5-dev@gem5.org
To unsubscribe send an email to gem5-dev-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to