49c49
< std::string _name;
---
> std::string name;
52d51
< std::string _procName;
58c57
< clock(clock), _period(_period), _name(clock->name()),
---
> clock(clock), _period(_period), name(clock->basename()), p(nullptr),
62,64c61,68
< _name += (to ? ".up_tick" : ".down_tick");
< _procName = _name + ".p";
< p = new Method(_procName.c_str(), &funcWrapper, true);
---
> name += std::string(to ? "_posedge_action" : "_negedge_action");
> name = ::sc_core::sc_gen_unique_name(name.c_str());
> }
>
> void
> createProcess()
> {
> p = new Method(name.c_str(), &funcWrapper, true);
73c77,78
< p->popListNode();
---
> if (p)
> p->popListNode();
158a164,165
> _gem5UpEdge->createProcess();
> _gem5DownEdge->createProcess();