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 --- 19 unchanged lines hidden (view full) --- 28 */ 29 30#include "systemc/core/scheduler.hh" 31 32#include "base/fiber.hh" 33#include "base/logging.hh" 34#include "sim/eventq.hh" 35#include "systemc/core/kernel.hh" |
36#include "systemc/ext/core/messages.hh" |
37#include "systemc/ext/core/sc_main.hh" 38#include "systemc/ext/utils/sc_report.hh" 39#include "systemc/ext/utils/sc_report_handler.hh" 40#include "systemc/utils/report.hh" 41#include "systemc/utils/tracefile.hh" 42 43namespace sc_gem5 44{ --- 63 unchanged lines hidden (view full) --- 108void 109Scheduler::initPhase() 110{ 111 for (Process *p = initList.getNext(); p; p = initList.getNext()) { 112 p->popListNode(); 113 114 if (p->dontInitialize()) { 115 if (!p->hasStaticSensitivities() && !p->internal()) { |
116 SC_REPORT_WARNING(sc_core::SC_ID_DISABLE_WILL_ORPHAN_PROCESS_, 117 p->name()); |
118 } 119 } else { 120 p->ready(); 121 } 122 } 123 124 runUpdate(); 125 runDelta(); --- 352 unchanged lines hidden (view full) --- 478 // sc_report instead if it's not a type we recognize/can handle. 479 throw; 480 } catch (const ::sc_core::sc_report &) { 481 // It's already a sc_report, so nothing to do. 482 throw; 483 } catch (const ::sc_core::sc_unwind_exception &) { 484 panic("Kill/reset exception escaped a Process::run()"); 485 } catch (const std::exception &e) { |
486 SC_REPORT_ERROR( 487 sc_core::SC_ID_SIMULATION_UNCAUGHT_EXCEPTION_, e.what()); |
488 } catch (const char *msg) { |
489 SC_REPORT_ERROR( 490 sc_core::SC_ID_SIMULATION_UNCAUGHT_EXCEPTION_, msg); |
491 } catch (...) { |
492 SC_REPORT_ERROR( 493 sc_core::SC_ID_SIMULATION_UNCAUGHT_EXCEPTION_, 494 "UNKNOWN EXCEPTION"); |
495 } 496 } catch (const ::sc_core::sc_report &r) { 497 ::sc_core::sc_report_handler::set_handler(old_handler); 498 return r; 499 } 500 panic("No exception thrown in reportifyException."); 501} 502 503} // namespace sc_gem5 |