process.cc (12999:1325c18d9ffd) process.cc (13006:f4e4f859d114)
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

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

215 _isUnwinding = true;
216
217 // Make sure this process isn't marked ready
218 popListNode();
219
220 // Inject the kill exception into this process if it's started.
221 if (!_needsStart)
222 injectException(killException);
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

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

215 _isUnwinding = true;
216
217 // Make sure this process isn't marked ready
218 popListNode();
219
220 // Inject the kill exception into this process if it's started.
221 if (!_needsStart)
222 injectException(killException);
223
224 _terminatedEvent.notify();
225}
226
227void
228Process::reset(bool inc_kids)
229{
230 // Propogate the reset to our children no matter what happens to us.
231 if (inc_kids)
232 forEachKid([](Process *p) { p->reset(true); });

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

379 _suspendedReady = false;
380 _suspended = false;
381 _syncReset = false;
382 delete dynamicSensitivity;
383 dynamicSensitivity = nullptr;
384 for (auto s: staticSensitivities)
385 delete s;
386 staticSensitivities.clear();
223}
224
225void
226Process::reset(bool inc_kids)
227{
228 // Propogate the reset to our children no matter what happens to us.
229 if (inc_kids)
230 forEachKid([](Process *p) { p->reset(true); });

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

377 _suspendedReady = false;
378 _suspended = false;
379 _syncReset = false;
380 delete dynamicSensitivity;
381 dynamicSensitivity = nullptr;
382 for (auto s: staticSensitivities)
383 delete s;
384 staticSensitivities.clear();
385
386 _terminatedEvent.notify();
387}
388
389Process *Process::_newest;
390
391void
392throw_it_wrapper(Process *p, ExceptionWrapperBase &exc, bool inc_kids)
393{
394 p->throw_it(exc, inc_kids);
395}
396
397} // namespace sc_gem5
387}
388
389Process *Process::_newest;
390
391void
392throw_it_wrapper(Process *p, ExceptionWrapperBase &exc, bool inc_kids)
393{
394 p->throw_it(exc, inc_kids);
395}
396
397} // namespace sc_gem5