Skip to content

Commit

Permalink
more updates to slot allocation
Browse files Browse the repository at this point in the history
  • Loading branch information
rmanohar committed May 22, 2023
1 parent 2df113e commit 2c95f35
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions chpsim.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4696,7 +4696,10 @@ ChpSimGraph *ChpSimGraph::_buildChpSimGraph (ActSimCore *sc,
ret->next = (*stop);
//}
i = 0;
used_slots = cur_pending_count;
count = cur_pending_count;
for (act_chp_gc_t *gc = c->u.gc; gc; gc = gc->next) {
cur_pending_count = count;
ret->all[i] = _buildChpSimGraph (sc, gc->s, &tmp2);
if (ret->all[i]) {
if (c->type == ACT_CHP_LOOP) {
Expand All @@ -4716,7 +4719,9 @@ ChpSimGraph *ChpSimGraph::_buildChpSimGraph (ActSimCore *sc,
}
}
i++;
used_slots = MAX (used_slots, cur_pending_count);
}
cur_pending_count = used_slots;
break;

case ACT_CHP_DOLOOP:
Expand Down

0 comments on commit 2c95f35

Please sign in to comment.