ruby: Fix potential bugs in garnet2.0

1. Delete unused variable from struct LinkEntry
2. Correct GarnetExtLink and GarnetIntLink inheritance
This commit is contained in:
Jieming Yin 2016-11-21 15:41:30 -05:00
parent 14deacf86e
commit b0856ab3b1
3 changed files with 4 additions and 5 deletions

View file

@ -57,7 +57,6 @@ typedef std::string PortDirection;
struct LinkEntry
{
BasicLink *link;
LinkDirection direction;
PortDirection src_outport_dirn;
PortDirection dst_inport_dirn;
};

View file

@ -37,7 +37,7 @@
#include "mem/ruby/network/garnet2.0/NetworkLink.hh"
GarnetIntLink::GarnetIntLink(const Params *p)
: BasicLink(p)
: BasicIntLink(p)
{
// Uni-directional
@ -63,7 +63,7 @@ GarnetIntLinkParams::create()
}
GarnetExtLink::GarnetExtLink(const Params *p)
: BasicLink(p)
: BasicExtLink(p)
{
// Bi-directional

View file

@ -44,7 +44,7 @@
#include "params/GarnetExtLink.hh"
#include "params/GarnetIntLink.hh"
class GarnetIntLink : public BasicLink
class GarnetIntLink : public BasicIntLink
{
public:
typedef GarnetIntLinkParams Params;
@ -69,7 +69,7 @@ operator<<(std::ostream& out, const GarnetIntLink& obj)
return out;
}
class GarnetExtLink : public BasicLink
class GarnetExtLink : public BasicExtLink
{
public:
typedef GarnetExtLinkParams Params;