return Base::getPort(if_name, idx);
}
-CortexA76Cluster::CortexA76Cluster(Params &p) :
- SimObject(&p), _params(p), cores(p.cores), evs(p.evs)
+CortexA76Cluster::CortexA76Cluster(const Params &p) :
+ SimObject(p), _params(p), cores(p.cores), evs(p.evs)
{
for (int i = 0; i < p.cores.size(); i++)
p.cores[i]->setCluster(this, i);
const Params ¶ms() { return _params; }
public:
- CortexA76(Params &p) : Base(&p, scx::scx_get_iris_connection_interface()),
- _params(p)
+ CortexA76(const Params &p) :
+ Base(p, scx::scx_get_iris_connection_interface()), _params(p)
{}
void
CortexA76 *getCore(int num) const { return cores.at(num); }
sc_core::sc_module *getEvs() const { return evs; }
- CortexA76Cluster(Params &p);
+ CortexA76Cluster(const Params &p);
const Params ¶ms() { return _params; }
Port &getPort(const std::string &if_name,
}
CortexR52Cluster::CortexR52Cluster(const Params &p) :
- SimObject(&p), _params(p), cores(p.cores), evs(p.evs)
+ SimObject(p), _params(p), cores(p.cores), evs(p.evs)
{
for (int i = 0; i < p.cores.size(); i++)
p.cores[i]->setCluster(this, i);
public:
CortexR52(const Params &p) :
- Base(&p, scx::scx_get_iris_connection_interface()), _params(p)
+ Base(p, scx::scx_get_iris_connection_interface()), _params(p)
{}
template <class T>
}
GIC::GIC(const FastModelGICParams ¶ms) :
- BaseGic(¶ms),
+ BaseGic(params),
ambaM(params.sc_gic->amba_m, params.name + ".amba_m", -1),
ambaS(params.sc_gic->amba_s, params.name + ".amba_s", -1),
redistributors(params.port_redistributor_connection_count),