target-mips: add mips16 instruction decoding
authorNathan Froyd <froydnj@codesourcery.com>
Tue, 8 Dec 2009 16:06:29 +0000 (08:06 -0800)
committerAurelien Jarno <aurelien@aurel32.net>
Sun, 13 Dec 2009 19:20:20 +0000 (20:20 +0100)
commite70fd34fa23c2e3b3bbdf8150439ba3fce310582
treed6932b83fbacae8d677e1714e0aa49b60d1b4358
parent133a2a34156be9b1844d76571af08dbb688fa04e
target-mips: add mips16 instruction decoding

There's no good way to add this incrementally, so we do it all at once.
The only changes to shared code are in handle_delay_slot.  We need to
flip ISAMode when doing a jump-and-exchange.  We also need to set
ISAMode the low bit of the target address for jump-to-register.

Also, since we're now adding bits that can be in MIPS_HFLAG_BMASK_EXT,
make sure we use MIPS_HFLAG_BMASK_BASE in the places where we just want
basic information about a branch.

Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
target-mips/translate.c