target-arm: Handle VMOV between two core and VFP single regs
commit8387da81975a1f5d310d5f3008514c419b3e82de
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 1 Mar 2011 17:35:19 +0000 (1 17:35 +0000)
committerAurelien Jarno <aurelien@aurel32.net>
Sun, 6 Mar 2011 19:28:08 +0000 (6 20:28 +0100)
treee7c3249b36e2a08736f917bb780f692585ca8c8d
parente095e2f3b47ced1ced72f3f2c72260e55f39903b
target-arm: Handle VMOV between two core and VFP single regs

Fix two bugs in the translation of the instructions VMOV sa,sb,rx,ry and
VMOV rx,ry,sa,sb (which copy between a pair of ARM core registers and a
pair of VFP single precision registers):

 * An incorrect condition meant these instruction patterns were being
   treated as load/store multiple, which resulted in the generation
   of bad code and a runtime segfault
 * The order of the core register pair was reversed so the values would
   go to the wrong registers

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
target-arm/translate.c