target-mips: change interrupt bits to be mips16-aware
authorNathan Froyd <froydnj@codesourcery.com>
Tue, 8 Dec 2009 16:06:23 +0000 (08:06 -0800)
committerAurelien Jarno <aurelien@aurel32.net>
Sun, 13 Dec 2009 19:20:19 +0000 (20:20 +0100)
commit0b1cebf6667ab0195d840625fa9fdd75ed1b7572
tree65801af8c3f32f6a946420a9f0d959b1696042b4
parentafb3765b1e441451a3aad8de05168f163fd86f27
target-mips: change interrupt bits to be mips16-aware

We need to stash the operating mode into the low bit of the error PC and
restore it on return from interrupts.

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