[5912] ARM: fix usad8 and usada8 usage of registers (Mans Rullgard).
Revision: 5912
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5912 Author: balrog Date: 2008-12-07 14:03:27 +0000 (Sun, 07 Dec 2008)
Log Message:
-----------
ARM: fix usad8 and usada8 usage of registers (Mans Rullgard).
This fixes the destination and accumulator registers for the usad8 and usada8 instructions.
Signed-off-by Mans Rullgard <[email protected]>
Signed-off-by Andrzej Zaborowski <[email protected]>
Modified Paths:
--------------
trunk/target-arm/translate.c
Modified: trunk/target-arm/translate.c
===================================================================
target-arm/translate.c +3 -3
@@ -6556,12 +6556,12 @@ tmp2 =load_reg (s, rs);gen_helper_usad8 (tmp, tmp, tmp2);dead_tmp (tmp2); -if (rn !=15 ) { - tmp2 =load_reg (s, rn); +if (rd !=15 ) { + tmp2 =load_reg (s, rd);tcg_gen_add_i32 (tmp, tmp, tmp2);dead_tmp (tmp2); } -store_reg (s, rd, tmp); +store_reg (s, rn, tmp);break ;case 0x20 :case 0x24 :case 0x28 :case 0x2c :/* Bitfield insert/clear. */