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 --- 207 unchanged lines hidden (view full) --- 216sc_module::get_child_events() const 217{ 218 return _gem5_module->obj()->get_child_events(); 219} 220 221sc_module::sc_module() : 222 sc_object(sc_gem5::newModuleChecked()->name()), 223 _gem5_module(sc_gem5::currentModule()) |
224{ 225 if (sc_is_running()) { 226 SC_REPORT_ERROR("(E529) insert module failed", "simulation running"); 227 std::cout << "Running!\n"; 228 } 229 if (::sc_gem5::scheduler.elaborationDone()) { 230 SC_REPORT_ERROR("(E529) insert module failed", "elaboration done"); 231 std::cout << "Elaboration done!\n"; 232 } 233} |
234 235sc_module::sc_module(const sc_module_name &) : sc_module() {} 236sc_module::sc_module(const char *_name) : sc_module(sc_module_name(_name)) 237{ 238 _gem5_module->deprecatedConstructor(); 239 SC_REPORT_WARNING("(W569) sc_module(const char*), " 240 "sc_module(const std::string&) have been deprecated, use " 241 "sc_module(const sc_module_name&)", _name); --- 592 unchanged lines hidden --- |