summaryrefslogtreecommitdiff
path: root/src/systemc
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2018-08-16 00:49:25 -0700
committerGabe Black <gabeblack@google.com>2018-09-20 01:50:42 +0000
commite1128dc8eb4afefcf4dad5eb5f863e0da921960a (patch)
treea21b819227dce3657fca5c8b34bed86171c3354d /src/systemc
parentf9298649bb4d1f20b244a6e0930bb82be5ec7397 (diff)
downloadgem5-e1128dc8eb4afefcf4dad5eb5f863e0da921960a.tar.xz
systemc: Don't run clocked thread processes during the init phase.
Change-Id: I170d67fef61dd5536a842a1f64682d90ae7a1507 Reviewed-on: https://gem5-review.googlesource.com/12211 Reviewed-by: Gabe Black <gabeblack@google.com> Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'src/systemc')
-rw-r--r--src/systemc/core/sc_module.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/systemc/core/sc_module.cc b/src/systemc/core/sc_module.cc
index 1434f69f2..016b9edbe 100644
--- a/src/systemc/core/sc_module.cc
+++ b/src/systemc/core/sc_module.cc
@@ -61,6 +61,7 @@ newCThreadProcess(const char *name, ProcessFuncWrapper *func)
{
Process *p = new CThread(name, func);
scheduler.reg(p);
+ p->dontInitialize();
return p;
}