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:
parent
14deacf86e
commit
b0856ab3b1
3 changed files with 4 additions and 5 deletions
|
@ -57,7 +57,6 @@ typedef std::string PortDirection;
|
||||||
struct LinkEntry
|
struct LinkEntry
|
||||||
{
|
{
|
||||||
BasicLink *link;
|
BasicLink *link;
|
||||||
LinkDirection direction;
|
|
||||||
PortDirection src_outport_dirn;
|
PortDirection src_outport_dirn;
|
||||||
PortDirection dst_inport_dirn;
|
PortDirection dst_inport_dirn;
|
||||||
};
|
};
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
#include "mem/ruby/network/garnet2.0/NetworkLink.hh"
|
#include "mem/ruby/network/garnet2.0/NetworkLink.hh"
|
||||||
|
|
||||||
GarnetIntLink::GarnetIntLink(const Params *p)
|
GarnetIntLink::GarnetIntLink(const Params *p)
|
||||||
: BasicLink(p)
|
: BasicIntLink(p)
|
||||||
{
|
{
|
||||||
// Uni-directional
|
// Uni-directional
|
||||||
|
|
||||||
|
@ -63,7 +63,7 @@ GarnetIntLinkParams::create()
|
||||||
}
|
}
|
||||||
|
|
||||||
GarnetExtLink::GarnetExtLink(const Params *p)
|
GarnetExtLink::GarnetExtLink(const Params *p)
|
||||||
: BasicLink(p)
|
: BasicExtLink(p)
|
||||||
{
|
{
|
||||||
// Bi-directional
|
// Bi-directional
|
||||||
|
|
||||||
|
|
|
@ -44,7 +44,7 @@
|
||||||
#include "params/GarnetExtLink.hh"
|
#include "params/GarnetExtLink.hh"
|
||||||
#include "params/GarnetIntLink.hh"
|
#include "params/GarnetIntLink.hh"
|
||||||
|
|
||||||
class GarnetIntLink : public BasicLink
|
class GarnetIntLink : public BasicIntLink
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
typedef GarnetIntLinkParams Params;
|
typedef GarnetIntLinkParams Params;
|
||||||
|
@ -69,7 +69,7 @@ operator<<(std::ostream& out, const GarnetIntLink& obj)
|
||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
|
|
||||||
class GarnetExtLink : public BasicLink
|
class GarnetExtLink : public BasicExtLink
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
typedef GarnetExtLinkParams Params;
|
typedef GarnetExtLinkParams Params;
|
||||||
|
|
Loading…
Reference in a new issue