summaryrefslogtreecommitdiff
path: root/src/mem/ruby
diff options
context:
space:
mode:
Diffstat (limited to 'src/mem/ruby')
-rw-r--r--src/mem/ruby/network/garnet2.0/RoutingUnit.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mem/ruby/network/garnet2.0/RoutingUnit.cc b/src/mem/ruby/network/garnet2.0/RoutingUnit.cc
index aa5ff53c1..695f50ee5 100644
--- a/src/mem/ruby/network/garnet2.0/RoutingUnit.cc
+++ b/src/mem/ruby/network/garnet2.0/RoutingUnit.cc
@@ -181,7 +181,7 @@ RoutingUnit::outportComputeXY(RouteInfo route,
{
PortDirection outport_dirn = "Unknown";
- int num_rows = m_router->get_net_ptr()->getNumRows();
+ int M5_VAR_USED num_rows = m_router->get_net_ptr()->getNumRows();
int num_cols = m_router->get_net_ptr()->getNumCols();
assert(num_rows > 0 && num_cols > 0);
@@ -238,4 +238,5 @@ RoutingUnit::outportComputeCustom(RouteInfo route,
PortDirection inport_dirn)
{
assert(0);
+ return -1;
}