39c39
< #include "sim/builder.hh"
---
> #include "params/Root.hh"
45c45
< Root(const std::string &name) : SimObject(name) {}
---
> Root(RootParams *params) : SimObject(params) {}
48,60c48,49
< BEGIN_DECLARE_SIM_OBJECT_PARAMS(Root)
<
< Param<int> dummy; // needed below
<
< END_DECLARE_SIM_OBJECT_PARAMS(Root)
<
< BEGIN_INIT_SIM_OBJECT_PARAMS(Root)
<
< INIT_PARAM(dummy, "") // All SimObjects must have params
<
< END_INIT_SIM_OBJECT_PARAMS(Root)
<
< CREATE_SIM_OBJECT(Root)
---
> Root *
> RootParams::create()
68c57
< return new Root(getInstanceName());
---
> return new Root(this);
70,71d58
<
< REGISTER_SIM_OBJECT("Root", Root)