46d45
< #include "sim/builder.hh"
53c52
< TsunamiPChip::TsunamiPChip(Params *p)
---
> TsunamiPChip::TsunamiPChip(const Params *p)
337,357c336,337
< BEGIN_DECLARE_SIM_OBJECT_PARAMS(TsunamiPChip)
<
< Param<Addr> pio_addr;
< Param<Tick> pio_latency;
< SimObjectParam<Platform *> platform;
< SimObjectParam<System *> system;
< SimObjectParam<Tsunami *> tsunami;
<
< END_DECLARE_SIM_OBJECT_PARAMS(TsunamiPChip)
<
< BEGIN_INIT_SIM_OBJECT_PARAMS(TsunamiPChip)
<
< INIT_PARAM(pio_addr, "Device Address"),
< INIT_PARAM(pio_latency, "Programmed IO latency"),
< INIT_PARAM(platform, "platform"),
< INIT_PARAM(system, "system object"),
< INIT_PARAM(tsunami, "Tsunami")
<
< END_INIT_SIM_OBJECT_PARAMS(TsunamiPChip)
<
< CREATE_SIM_OBJECT(TsunamiPChip)
---
> TsunamiPChip *
> TsunamiPChipParams::create()
359,366c339
< TsunamiPChip::Params *p = new TsunamiPChip::Params;
< p->name = getInstanceName();
< p->pio_addr = pio_addr;
< p->pio_delay = pio_latency;
< p->platform = platform;
< p->system = system;
< p->tsunami = tsunami;
< return new TsunamiPChip(p);
---
> return new TsunamiPChip(this);
368,369d340
<
< REGISTER_SIM_OBJECT("TsunamiPChip", TsunamiPChip)