Deleted Added
sdiff udiff text old ( 12982:c7966254372e ) new ( 13045:ccedccd0d93d )
full compact
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

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

38{
39
40namespace
41{
42
43std::list<Module *> _modules;
44Module *_new_module;
45
46Module *_callbackModule = nullptr;
47
48} // anonymous namespace
49
50Module::Module(const char *name) : _name(name), _sc_mod(nullptr), _obj(nullptr)
51{
52 panic_if(_new_module, "Previous module not finished.\n");
53 _new_module = this;
54}
55

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

87}
88
89Module *
90newModule()
91{
92 return _new_module;
93}
94
95void callbackModule(Module *m) { _callbackModule = m; }
96Module *callbackModule() { return _callbackModule; }
97
98std::set<Module *> allModules;
99
100} // namespace sc_gem5