Deleted Added
sdiff udiff text old ( 12863:ed8c2541cb30 ) new ( 12950:af1f0b5e8dfb )
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

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

25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 *
27 * Authors: Gabe Black
28 */
29
30#ifndef __SYSTEMC_CORE_MODULE_HH__
31#define __SYSTEMC_CORE_MODULE_HH__
32
33namespace SystemC
34{
35
36class Module
37{
38 private:
39 const char *_name;
40
41 public:
42 Module(const char *name) : _name(name) {}
43
44 const char *name() { return _name; }
45
46 void push();
47 void pop();
48};
49
50extern Module *topModule();
51
52} // namespace SystemC
53
54namespace sc_gem5
55{
56
57using SystemC::Module;
58
59} // namespace sc_gem5
60
61#endif //__SYSTEMC_CORE_MODULE_HH__