diff options
Diffstat (limited to 'src/systemc/core/sc_process_handle.cc')
-rw-r--r-- | src/systemc/core/sc_process_handle.cc | 34 |
1 files changed, 12 insertions, 22 deletions
diff --git a/src/systemc/core/sc_process_handle.cc b/src/systemc/core/sc_process_handle.cc index fff406161..9fd8efc40 100644 --- a/src/systemc/core/sc_process_handle.cc +++ b/src/systemc/core/sc_process_handle.cc @@ -30,6 +30,7 @@ #include "base/logging.hh" #include "systemc/core/process.hh" #include "systemc/core/scheduler.hh" +#include "systemc/ext/core/messages.hh" #include "systemc/ext/core/sc_main.hh" #include "systemc/ext/core/sc_process_handle.hh" #include "systemc/ext/utils/sc_report_handler.hh" @@ -197,8 +198,7 @@ const sc_event & sc_process_handle::terminated_event() const { if (!_gem5_process) { - SC_REPORT_WARNING("(W570) attempt to use an empty " - "process handle ignored", "terminated_event()"); + SC_REPORT_WARNING(SC_ID_EMPTY_PROCESS_HANDLE_, "terminated_event()"); static sc_gem5::InternalScEvent non_event; return non_event; } @@ -210,8 +210,7 @@ void sc_process_handle::suspend(sc_descendent_inclusion_info include_descendants) { if (!_gem5_process) { - SC_REPORT_WARNING("(W570) attempt to use an empty " - "process handle ignored", "suspend()"); + SC_REPORT_WARNING(SC_ID_EMPTY_PROCESS_HANDLE_, "suspend()"); return; } _gem5_process->suspend(include_descendants == SC_INCLUDE_DESCENDANTS); @@ -221,8 +220,7 @@ void sc_process_handle::resume(sc_descendent_inclusion_info include_descendants) { if (!_gem5_process) { - SC_REPORT_WARNING("(W570) attempt to use an empty " - "process handle ignored", "resume()"); + SC_REPORT_WARNING(SC_ID_EMPTY_PROCESS_HANDLE_, "resume()"); return; } _gem5_process->resume(include_descendants == SC_INCLUDE_DESCENDANTS); @@ -232,8 +230,7 @@ void sc_process_handle::disable(sc_descendent_inclusion_info include_descendants) { if (!_gem5_process) { - SC_REPORT_WARNING("(W570) attempt to use an empty " - "process handle ignored", "disable()"); + SC_REPORT_WARNING(SC_ID_EMPTY_PROCESS_HANDLE_, "disable()"); return; } _gem5_process->disable(include_descendants == SC_INCLUDE_DESCENDANTS); @@ -243,8 +240,7 @@ void sc_process_handle::enable(sc_descendent_inclusion_info include_descendants) { if (!_gem5_process) { - SC_REPORT_WARNING("(W570) attempt to use an empty " - "process handle ignored", "enable()"); + SC_REPORT_WARNING(SC_ID_EMPTY_PROCESS_HANDLE_, "enable()"); return; } _gem5_process->enable(include_descendants == SC_INCLUDE_DESCENDANTS); @@ -254,8 +250,7 @@ void sc_process_handle::kill(sc_descendent_inclusion_info include_descendants) { if (!_gem5_process) { - SC_REPORT_WARNING("(W570) attempt to use an empty " - "process handle ignored", "kill()"); + SC_REPORT_WARNING(SC_ID_EMPTY_PROCESS_HANDLE_, "kill()"); return; } _gem5_process->kill(include_descendants == SC_INCLUDE_DESCENDANTS); @@ -265,8 +260,7 @@ void sc_process_handle::reset(sc_descendent_inclusion_info include_descendants) { if (!_gem5_process) { - SC_REPORT_WARNING("(W570) attempt to use an empty " - "process handle ignored", "reset()"); + SC_REPORT_WARNING(SC_ID_EMPTY_PROCESS_HANDLE_, "reset()"); return; } _gem5_process->reset(include_descendants == SC_INCLUDE_DESCENDANTS); @@ -276,8 +270,7 @@ bool sc_process_handle::is_unwinding() { if (!_gem5_process) { - SC_REPORT_WARNING("(W570) attempt to use an empty " - "process handle ignored", "is_unwinding()"); + SC_REPORT_WARNING(SC_ID_EMPTY_PROCESS_HANDLE_, "is_unwinding()"); return false; } return _gem5_process->isUnwinding(); @@ -287,8 +280,7 @@ const sc_event & sc_process_handle::reset_event() const { if (!_gem5_process) { - SC_REPORT_WARNING("(W570) attempt to use an empty " - "process handle ignored", "reset()"); + SC_REPORT_WARNING(SC_ID_EMPTY_PROCESS_HANDLE_, "reset()"); static sc_gem5::InternalScEvent non_event; return non_event; } @@ -301,8 +293,7 @@ sc_process_handle::sync_reset_on( sc_descendent_inclusion_info include_descendants) { if (!_gem5_process) { - SC_REPORT_WARNING("(W570) attempt to use an empty " - "process handle ignored", "sync_reset_on()"); + SC_REPORT_WARNING(SC_ID_EMPTY_PROCESS_HANDLE_, "sync_reset_on()"); return; } _gem5_process->syncResetOn(include_descendants == SC_INCLUDE_DESCENDANTS); @@ -313,8 +304,7 @@ sc_process_handle::sync_reset_off( sc_descendent_inclusion_info include_descendants) { if (!_gem5_process) { - SC_REPORT_WARNING("(W570) attempt to use an empty " - "process handle ignored", "sync_reset_off()"); + SC_REPORT_WARNING(SC_ID_EMPTY_PROCESS_HANDLE_, "sync_reset_off()"); return; } _gem5_process->syncResetOff(include_descendants == SC_INCLUDE_DESCENDANTS); |