sc_module.cc (13189:057566bc8fd6) | sc_module.cc (13191:a2254693aa5b) |
---|---|
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) --- 216} 217 218sc_module::sc_module() : 219 sc_object(sc_gem5::newModuleChecked()->name()), 220 _gem5_module(sc_gem5::currentModule()) 221{} 222 223sc_module::sc_module(const sc_module_name &) : sc_module() {} | 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) --- 216} 217 218sc_module::sc_module() : 219 sc_object(sc_gem5::newModuleChecked()->name()), 220 _gem5_module(sc_gem5::currentModule()) 221{} 222 223sc_module::sc_module(const sc_module_name &) : sc_module() {} |
224sc_module::sc_module(const char *_name) : sc_module(sc_module_name(_name)) {} | 224sc_module::sc_module(const char *_name) : sc_module(sc_module_name(_name)) 225{ 226 _gem5_module->deprecatedConstructor(); 227 SC_REPORT_WARNING("(W569) sc_module(const char*), " 228 "sc_module(const std::string&) have been deprecated, use " 229 "sc_module(const sc_module_name&)", _name); 230} |
225sc_module::sc_module(const std::string &_name) : 226 sc_module(sc_module_name(_name.c_str())) | 231sc_module::sc_module(const std::string &_name) : 232 sc_module(sc_module_name(_name.c_str())) |
227{} | 233{ 234 _gem5_module->deprecatedConstructor(); 235 SC_REPORT_WARNING("(W569) sc_module(const char*), " 236 "sc_module(const std::string&) have been deprecated, use " 237 "sc_module(const sc_module_name&)", _name.c_str()); 238} |
228 229void | 239 240void |
241sc_module::end_module() 242{ 243 _gem5_module->endModule(); 244} 245 246void |
|
230sc_module::reset_signal_is(const sc_in<bool> &, bool) 231{ 232 warn("%s not implemented.\n", __PRETTY_FUNCTION__); 233} 234 235void 236sc_module::reset_signal_is(const sc_inout<bool> &, bool) 237{ --- 513 unchanged lines hidden --- | 247sc_module::reset_signal_is(const sc_in<bool> &, bool) 248{ 249 warn("%s not implemented.\n", __PRETTY_FUNCTION__); 250} 251 252void 253sc_module::reset_signal_is(const sc_inout<bool> &, bool) 254{ --- 513 unchanged lines hidden --- |