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)
commit32188a03dae09c8a02bc72f26ece4a98183cc787
tree65801af8c3f32f6a946420a9f0d959b1696042b4
parent79ef2c4cdbe73955b1394f0fd9517c5a79e0455e
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