]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
tcg-sparc: Fix ADDX opcode.
authorRichard Henderson <rth@twiddle.net>
Fri, 23 Mar 2012 22:57:12 +0000 (23:57 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 9 Oct 2012 06:42:10 +0000 (01:42 -0500)
Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
tcg/sparc/tcg-target.c

index 608fc46dc0668bc97f3eb99938fd3a1c166a1cac..0a19313148662b01a32c5a45cfd7e2a528d43154 100644 (file)
@@ -236,7 +236,7 @@ static inline int tcg_target_const_match(tcg_target_long val,
 #define ARITH_XOR  (INSN_OP(2) | INSN_OP3(0x03))
 #define ARITH_SUB  (INSN_OP(2) | INSN_OP3(0x04))
 #define ARITH_SUBCC (INSN_OP(2) | INSN_OP3(0x14))
-#define ARITH_ADDX (INSN_OP(2) | INSN_OP3(0x10))
+#define ARITH_ADDX (INSN_OP(2) | INSN_OP3(0x08))
 #define ARITH_SUBX (INSN_OP(2) | INSN_OP3(0x0c))
 #define ARITH_UMUL (INSN_OP(2) | INSN_OP3(0x0a))
 #define ARITH_UDIV (INSN_OP(2) | INSN_OP3(0x0e))