target-arm: fix thumb CPS
commitfa26df032ec3da7bf0db541e40b2ac1b19aea391
authorRabin Vincent <rabin@rab.in>
Sun, 14 Feb 2010 18:32:34 +0000 (15 00:02 +0530)
committerPaul Brook <paul@codesourcery.com>
Fri, 19 Feb 2010 13:38:32 +0000 (19 13:38 +0000)
tree515f4b26ec8039a35ba1ca79dd4898e3e0403f15
parent24ebf5f31a178051cff1a4aab5ba621037191577
target-arm: fix thumb CPS

The Thumb CPS currently does not work correctly: CPSID touches more bits
than the instruction wants to, and CPSIE does nothing.  Fix it by
passing the correct mask (the "affect" bits) and value.

Signed-off-by: Rabin Vincent <rabin@rab.in>
target-arm/translate.c