[mgsim] Fixed remote register access bug.
[mgsim] Fixed remote register access bug.

The remote register access instructions (putg, puts and gets) specify which global or shared they wish to access. This index should be verified against the register counts of the target family, on the target core.

Previously, it was not, causing #313. It has now been fixed.



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

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