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
|
||||
{
|
||||
BasicLink *link;
|
||||
LinkDirection direction;
|
||||
PortDirection src_outport_dirn;
|
||||
PortDirection dst_inport_dirn;
|
||||
};
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue