sc_module.cc (13060:a5465580f647) sc_module.cc (13079:e7e261dd975b)
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

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

163
164const std::vector<sc_event *> &
165sc_module::get_child_events() const
166{
167 return _gem5_module->obj()->get_child_events();
168}
169
170sc_module::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

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

163
164const std::vector<sc_event *> &
165sc_module::get_child_events() const
166{
167 return _gem5_module->obj()->get_child_events();
168}
169
170sc_module::sc_module() :
171 sc_object(sc_gem5::newModule()->name()),
171 sc_object(sc_gem5::newModuleChecked()->name()),
172 _gem5_module(sc_gem5::currentModule())
173{}
174
175sc_module::sc_module(const sc_module_name &) : sc_module() {}
176sc_module::sc_module(const char *_name) : sc_module(sc_module_name(_name)) {}
177sc_module::sc_module(const std::string &_name) :
178 sc_module(sc_module_name(_name.c_str()))
179{}

--- 504 unchanged lines hidden ---
172 _gem5_module(sc_gem5::currentModule())
173{}
174
175sc_module::sc_module(const sc_module_name &) : sc_module() {}
176sc_module::sc_module(const char *_name) : sc_module(sc_module_name(_name)) {}
177sc_module::sc_module(const std::string &_name) :
178 sc_module(sc_module_name(_name.c_str()))
179{}

--- 504 unchanged lines hidden ---