target-arm: fix SRS/RFE instructions
authorFilip Navara <filip.navara@gmail.com>
Thu, 15 Oct 2009 10:12:11 +0000 (12:12 +0200)
committerAurelien Jarno <aurelien@aurel32.net>
Sat, 17 Oct 2009 21:52:16 +0000 (23:52 +0200)
commitc67b6b719b1ceb5415c5d55e3be847bec57f5d05
tree099af6aa1e592eaedefc949e08644df7fe74de34
parent217aff9c76c2c2a078ada946a934df005f9ae9a6
target-arm: fix SRS/RFE instructions

The encoding of 'IA' and 'DB' conditions was swapped.
SRS instruction must store banked SPSR instead of CPSR at the specific address.
Missing 'return' statement at the end of RFE handling.
Fixed write-back code to reference correct registers.

From: Hyeonsung Jang <hsjang@ok-labs.com>
Signed-off-by: Filip Navara <filip.navara@gmail.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
target-arm/translate.c