mgsim: fixed thread exhaustion bug
mgsim: fixed thread exhaustion bug

Thread entries could get exhausted on a core because threads reserved for group creates were never used, remaining forever reserved. This has been fixed by recognizing the first created thread in a group create and allocating a reserved thread in that case.


git-svn-id: 5df9d7b5f7c0affc7b6f3523bb99fcf0586782cc@2945 e97e5017-a994-416e-809d-76780e9f78db

Bitblade-org/mgsim,Bitblade-org/mgsim,Bitblade-org/mgsim,Bitblade-org/mgsim