diff options
author | Tushar Krishna <tushar@ece.gatech.edu> | 2016-10-06 21:06:00 -0400 |
---|---|---|
committer | Tushar Krishna <tushar@ece.gatech.edu> | 2016-10-06 21:06:00 -0400 |
commit | 22e6f65d7230e90f0a8032567f8c313d0e83a30c (patch) | |
tree | b43ca7210fea3485e689d0808d41f74094aa2ff8 /src | |
parent | dbe8892b761067c5c1e828f889a513ea085b044f (diff) | |
download | gem5-22e6f65d7230e90f0a8032567f8c313d0e83a30c.tar.xz |
ruby: Add M5_VAR_USED before variables used only inside assert in garnet2.0.
This removes errors when building gem5.fast
Diffstat (limited to 'src')
-rw-r--r-- | src/mem/ruby/network/garnet2.0/RoutingUnit.cc | 3 |
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; } |