knz/mgsim — pull request #2 by fuzzie (2012-09-25 10:00:19+00:00)
Title: Fix GetRegisterClass for MIPS.

Otherwise the registers are all off-by-one, so you can't use r31.

I realise it says "DO NOT CHANGE THIS", but this matches the behaviour of the SPARC ISA implementation; assuming the idea is to simulate a physical register file which only has 31 registers, r31 is only returned by TranslateRegister if you do it this way, and of course it throws an exception otherwise.