Gabe Black has uploaded this change for review. (
https://gem5-review.googlesource.com/11175
Change subject: systemc: Add some missing enums to the utils _using.hh
......................................................................
systemc: Add some missing enums to the utils _using.hh
Change-Id: Id12f7a3bb0f6b8dcc16ef7f2391acdc7bf457952
---
M src/systemc/ext/core/sc_process_handle.hh
M src/systemc/ext/utils/_using.hh
2 files changed, 33 insertions(+), 0 deletions(-)
diff --git a/src/systemc/ext/core/sc_process_handle.hh
b/src/systemc/ext/core/sc_process_handle.hh
index ce3fe03..a928ab3 100644
--- a/src/systemc/ext/core/sc_process_handle.hh
+++ b/src/systemc/ext/core/sc_process_handle.hh
@@ -33,6 +33,13 @@
#include <exception>
#include <vector>
+namespace sc_gem5
+{
+
+class Process;
+
+} // namespace sc_gem5
+
namespace sc_core
{
@@ -67,12 +74,26 @@
class sc_process_handle
{
+ private:
+ ::sc_gem5::Process *_gem5_process;
+
public:
sc_process_handle();
sc_process_handle(const sc_process_handle &);
explicit sc_process_handle(sc_object *);
~sc_process_handle();
+ // These non-standard operators provide access to the data structure
which
+ // actually tracks the process within gem5. By making them operators,
we
+ // can minimize the symbols added to the class namespace.
+ operator ::sc_gem5::Process * () const { return _gem5_process; }
+ sc_process_handle &
+ operator = (::sc_gem5::Process *p)
+ {
+ _gem5_process = p;
+ return *this;
+ }
+
bool valid() const;
sc_process_handle &operator = (const sc_process_handle &);
diff --git a/src/systemc/ext/utils/_using.hh
b/src/systemc/ext/utils/_using.hh
index a176418..1ec6599 100644
--- a/src/systemc/ext/utils/_using.hh
+++ b/src/systemc/ext/utils/_using.hh
@@ -33,9 +33,21 @@
#include "_utils.hh"
using sc_core::sc_severity;
+using sc_core::SC_INFO;
+using sc_core::SC_WARNING;
+using sc_core::SC_ERROR;
+using sc_core::SC_FATAL;
+using sc_core::SC_MAX_SEVERITY;
using sc_core::sc_verbosity;
+using sc_core::SC_NONE;
+using sc_core::SC_LOW;
+using sc_core::SC_MEDIUM;
+using sc_core::SC_HIGH;
+using sc_core::SC_FULL;
+using sc_core::SC_DEBUG;
using sc_core::sc_report;
+using sc_core::sc_actions;
using sc_core::SC_UNSPECIFIED;
using sc_core::SC_DO_NOTHING;
using sc_core::SC_THROW;
--
To view, visit https://gem5-review.googlesource.com/11175
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: Id12f7a3bb0f6b8dcc16ef7f2391acdc7bf457952
Gerrit-Change-Number: 11175
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