ruby: Add M5_VAR_USED before variables used only inside assert in garnet2.0.
This removes errors when building gem5.fast
This commit is contained in:
parent
dbe8892b76
commit
22e6f65d72
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue