34a35
> #include "systemc/ext/utils/sc_report_handler.hh"
199,200c200,206
< static sc_event non_event;
< return _gem5_process ? _gem5_process->terminatedEvent() : non_event;
---
> if (!_gem5_process) {
> SC_REPORT_WARNING("(W570) attempt to use an empty "
> "process handle ignored", "terminated_event()");
> static sc_event non_event;
> return non_event;
> }
> return _gem5_process->terminatedEvent();
207c213,215
< if (!_gem5_process)
---
> if (!_gem5_process) {
> SC_REPORT_WARNING("(W570) attempt to use an empty "
> "process handle ignored", "suspend()");
208a217
> }
215c224,226
< if (!_gem5_process)
---
> if (!_gem5_process) {
> SC_REPORT_WARNING("(W570) attempt to use an empty "
> "process handle ignored", "resume()");
216a228
> }
223c235,237
< if (!_gem5_process)
---
> if (!_gem5_process) {
> SC_REPORT_WARNING("(W570) attempt to use an empty "
> "process handle ignored", "disable()");
224a239
> }
231c246,248
< if (!_gem5_process)
---
> if (!_gem5_process) {
> SC_REPORT_WARNING("(W570) attempt to use an empty "
> "process handle ignored", "enable()");
232a250
> }
239c257,259
< if (!_gem5_process)
---
> if (!_gem5_process) {
> SC_REPORT_WARNING("(W570) attempt to use an empty "
> "process handle ignored", "kill()");
240a261
> }
247c268,270
< if (!_gem5_process)
---
> if (!_gem5_process) {
> SC_REPORT_WARNING("(W570) attempt to use an empty "
> "process handle ignored", "reset()");
248a272
> }
256,257c280,281
< //TODO This should generate a systemc style warning if the handle is
< //invalid.
---
> SC_REPORT_WARNING("(W570) attempt to use an empty "
> "process handle ignored", "is_unwinding()");
259,260d282
< } else {
< return _gem5_process->isUnwinding();
261a284
> return _gem5_process->isUnwinding();
267,268c290,296
< static sc_event non_event;
< return _gem5_process ? _gem5_process->resetEvent() : non_event;
---
> if (!_gem5_process) {
> SC_REPORT_WARNING("(W570) attempt to use an empty "
> "process handle ignored", "reset()");
> static sc_event non_event;
> return non_event;
> }
> return _gem5_process->resetEvent();
276c304,306
< if (!_gem5_process)
---
> if (!_gem5_process) {
> SC_REPORT_WARNING("(W570) attempt to use an empty "
> "process handle ignored", "sync_reset_on()");
277a308
> }
285c316,318
< if (!_gem5_process)
---
> if (!_gem5_process) {
> SC_REPORT_WARNING("(W570) attempt to use an empty "
> "process handle ignored", "sync_reset_off()");
286a320
> }