Gabe Black has uploaded this change for review. (
https://gem5-review.googlesource.com/11186
Change subject: systemc: Add the nonstandard variable
sc_allow_process_control_corners.
......................................................................
systemc: Add the nonstandard variable sc_allow_process_control_corners.
This variable controls what happens in some situations which are left
as undefined in the spec. It's behavior is explained in a big comment
in the Accellera implementation. Since it's used in the regression
tests, we need to at least have that variable so they'll compile and
link properly.
Change-Id: I1ac4592641be3d9dd10e7bf6144704a6fac1b2d4
---
M src/systemc/core/sc_process_handle.cc
M src/systemc/ext/core/sc_process_handle.hh
2 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/src/systemc/core/sc_process_handle.cc
b/src/systemc/core/sc_process_handle.cc
index 07a07ad..06fd0b3 100644
--- a/src/systemc/core/sc_process_handle.cc
+++ b/src/systemc/core/sc_process_handle.cc
@@ -278,4 +278,6 @@
return false;
}
+bool sc_allow_process_control_corners;
+
} // namespace sc_core
diff --git a/src/systemc/ext/core/sc_process_handle.hh
b/src/systemc/ext/core/sc_process_handle.hh
index a8f977b..55fa2b7 100644
--- a/src/systemc/ext/core/sc_process_handle.hh
+++ b/src/systemc/ext/core/sc_process_handle.hh
@@ -150,6 +150,12 @@
sc_process_handle sc_get_current_process_handle();
bool sc_is_unwinding();
+// Nonstandard
+// See Accellera's kernel/sim_context.cpp for an explanation of what this
is
+// supposed to do. It essentially selects what happens during certain
+// undefined situations.
+extern bool sc_allow_process_control_corners;
+
} // namespace sc_core
#endif //__SYSTEMC_EXT_CORE_SC_PROCESS_HANDLE_HH__
--
To view, visit https://gem5-review.googlesource.com/11186
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: I1ac4592641be3d9dd10e7bf6144704a6fac1b2d4
Gerrit-Change-Number: 11186
Gerrit-PatchSet: 1
Gerrit-Owner: Gabe Black <gabebl...@google.com>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list
gem5-dev@gem5.org
http://m5sim.org/mailman/listinfo/gem5-dev