process.cc (13260:4d18f1d20093) process.cc (13261:c8e97d29976d)
1/*
2 * Copyright 2018 Google, Inc.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are
6 * met: redistributions of source code must retain the above copyright
7 * notice, this list of conditions and the following disclaimer;
8 * redistributions in binary form must reproduce the above copyright

--- 169 unchanged lines hidden (view full) ---

178 if (inc_kids)
179 forEachKid([](Process *p) { p->reset(true); });
180
181 // If we're in the middle of unwinding, ignore the reset request.
182 if (_isUnwinding)
183 return;
184
185
1/*
2 * Copyright 2018 Google, Inc.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are
6 * met: redistributions of source code must retain the above copyright
7 * notice, this list of conditions and the following disclaimer;
8 * redistributions in binary form must reproduce the above copyright

--- 169 unchanged lines hidden (view full) ---

178 if (inc_kids)
179 forEachKid([](Process *p) { p->reset(true); });
180
181 // If we're in the middle of unwinding, ignore the reset request.
182 if (_isUnwinding)
183 return;
184
185
186 _resetEvent.notify();
187
186 if (_needsStart) {
187 scheduler.runNow(this);
188 } else {
189 _isUnwinding = true;
190 injectException(resetException);
191 }
188 if (_needsStart) {
189 scheduler.runNow(this);
190 } else {
191 _isUnwinding = true;
192 injectException(resetException);
193 }
192
193 _resetEvent.notify();
194}
195
196void
197Process::throw_it(ExceptionWrapperBase &exc, bool inc_kids)
198{
199 if (::sc_core::sc_get_status() != ::sc_core::SC_RUNNING) {
200 SC_REPORT_ERROR(
201 "(E574) throw_it not allowed unless simulation is running ",

--- 220 unchanged lines hidden ---
194}
195
196void
197Process::throw_it(ExceptionWrapperBase &exc, bool inc_kids)
198{
199 if (::sc_core::sc_get_status() != ::sc_core::SC_RUNNING) {
200 SC_REPORT_ERROR(
201 "(E574) throw_it not allowed unless simulation is running ",

--- 220 unchanged lines hidden ---