1. Delete unused variable from struct LinkEntry
2. Correct GarnetExtLink and GarnetIntLink inheritance
struct LinkEntry
{
BasicLink *link;
- LinkDirection direction;
PortDirection src_outport_dirn;
PortDirection dst_inport_dirn;
};
#include "mem/ruby/network/garnet2.0/NetworkLink.hh"
GarnetIntLink::GarnetIntLink(const Params *p)
- : BasicLink(p)
+ : BasicIntLink(p)
{
// Uni-directional
}
GarnetExtLink::GarnetExtLink(const Params *p)
- : BasicLink(p)
+ : BasicExtLink(p)
{
// Bi-directional
#include "params/GarnetExtLink.hh"
#include "params/GarnetIntLink.hh"
-class GarnetIntLink : public BasicLink
+class GarnetIntLink : public BasicIntLink
{
public:
typedef GarnetIntLinkParams Params;
return out;
}
-class GarnetExtLink : public BasicLink
+class GarnetExtLink : public BasicExtLink
{
public:
typedef GarnetExtLinkParams Params;