Gabe Black has submitted this change and it was merged. (
https://gem5-review.googlesource.com/c/public/gem5/+/13313 )
Change subject: systemc: Ignore attempts to throw a signal to a method.
......................................................................
systemc: Ignore attempts to throw a signal to a method.
Change-Id: I8c2b20525aa46955f4f2df34436b7424e706e410
Reviewed-on: https://gem5-review.googlesource.com/c/13313
Reviewed-by: Gabe Black <[email protected]>
Maintainer: Gabe Black <[email protected]>
---
M src/systemc/core/process.cc
1 file changed, 5 insertions(+), 1 deletion(-)
Approvals:
Gabe Black: Looks good to me, approved; Looks good to me, approved
diff --git a/src/systemc/core/process.cc b/src/systemc/core/process.cc
index 93542fc..7d21960 100644
--- a/src/systemc/core/process.cc
+++ b/src/systemc/core/process.cc
@@ -206,8 +206,12 @@
if (inc_kids)
forEachKid([&exc](Process *p) { p->throw_it(exc, true); });
- if (_needsStart || _terminated)
+ if (_needsStart || _terminated ||
+ procKind() == ::sc_core::SC_METHOD_PROC_) {
+ SC_REPORT_WARNING("(W556) throw_it on method/non-running process "
+ "is being ignored ", name());
return;
+ }
injectException(exc);
}
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/13313
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-Change-Id: I8c2b20525aa46955f4f2df34436b7424e706e410
Gerrit-Change-Number: 13313
Gerrit-PatchSet: 4
Gerrit-Owner: Gabe Black <[email protected]>
Gerrit-Reviewer: Andreas Sandberg <[email protected]>
Gerrit-Reviewer: Gabe Black <[email protected]>
Gerrit-Reviewer: Giacomo Travaglini <[email protected]>
Gerrit-Reviewer: Jason Lowe-Power <[email protected]>
Gerrit-Reviewer: Matthias Jung <[email protected]>
Gerrit-MessageType: merged
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev