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