[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL for-4.1 2/7] tcg/aarch64: Fix output of extract2 opco
From: |
Richard Henderson |
Subject: |
[Qemu-devel] [PULL for-4.1 2/7] tcg/aarch64: Fix output of extract2 opcodes |
Date: |
Sun, 14 Jul 2019 11:12:44 +0000 |
This patch fixes two problems:
(1) The inputs to the EXTR insn were reversed,
(2) The input constraints use rZ, which means that we need to use
the REG0 macro in order to supply XZR for a constant 0 input.
Fixes: 464c2969d5d
Reported-by: Peter Maydell <address@hidden>
Tested-by: Alex Bennée <address@hidden>
Reviewed-by: Alex Bennée <address@hidden>
Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
Signed-off-by: Richard Henderson <address@hidden>
---
tcg/aarch64/tcg-target.inc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tcg/aarch64/tcg-target.inc.c b/tcg/aarch64/tcg-target.inc.c
index b0f8106642..0713448bf5 100644
--- a/tcg/aarch64/tcg-target.inc.c
+++ b/tcg/aarch64/tcg-target.inc.c
@@ -2226,7 +2226,7 @@ static void tcg_out_op(TCGContext *s, TCGOpcode opc,
case INDEX_op_extract2_i64:
case INDEX_op_extract2_i32:
- tcg_out_extr(s, ext, a0, a1, a2, args[3]);
+ tcg_out_extr(s, ext, a0, REG0(2), REG0(1), args[3]);
break;
case INDEX_op_add2_i32:
--
2.17.1
- [Qemu-devel] [PULL for-4.1 0/7] tcg patch queue, Richard Henderson, 2019/07/14
- [Qemu-devel] [PULL for-4.1 1/7] tcg: Fix constant folding of INDEX_op_extract2_i32, Richard Henderson, 2019/07/14
- [Qemu-devel] [PULL for-4.1 3/7] include/qemu/atomic.h: Add signal_barrier, Richard Henderson, 2019/07/14
- [Qemu-devel] [PULL for-4.1 2/7] tcg/aarch64: Fix output of extract2 opcodes,
Richard Henderson <=
- [Qemu-devel] [PULL for-4.1 5/7] tcg: Remove cpu_ld*_code_ra, Richard Henderson, 2019/07/14
- [Qemu-devel] [PULL for-4.1 4/7] tcg: Introduce set/clear_helper_retaddr, Richard Henderson, 2019/07/14
- [Qemu-devel] [PULL for-4.1 6/7] tcg: Remove duplicate #if !defined(CODE_ACCESS), Richard Henderson, 2019/07/14
- [Qemu-devel] [PULL for-4.1 7/7] tcg: Release mmap_lock on translation fault, Richard Henderson, 2019/07/14
- Re: [Qemu-devel] [PULL for-4.1 0/7] tcg patch queue, Peter Maydell, 2019/07/15