tcg-ia64: Fix address compilation in qemu_st.
authorRichard Henderson <rth@twiddle.net>
Mon, 22 Nov 2010 22:57:57 +0000 (14:57 -0800)
committerEdgar E. Iglesias <edgar@axis.com>
Wed, 1 Dec 2010 18:48:31 +0000 (19:48 +0100)
A typo in the usermode address calculation path; R3 used where R2 needed.

Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Edgar E. Iglesias <edgar@axis.com>
tcg/ia64/tcg-target.c

index da81f1b7c0d588fed3444927f9a93841c3772e1e..57d0bcc608c1ba731b48660d647790378a3d947c 100644 (file)
@@ -1818,7 +1818,7 @@ static inline void tcg_out_qemu_st(TCGContext *s, const TCGArg *args, int opc)
         tcg_out_bundle(s, miI,
                        tcg_opc_m48(TCG_REG_P0, OPC_NOP_M48, 0),
                        tcg_opc_i29(TCG_REG_P0, OPC_ZXT4_I29,
-                                   TCG_REG_R3, addr_reg),
+                                   TCG_REG_R2, addr_reg),
                        tcg_opc_i18(TCG_REG_P0, OPC_NOP_I18, 0));
     }