[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 9/9] target/arm: Correct VMOV_imm_dp handling of shor
From: |
Peter Maydell |
Subject: |
[Qemu-devel] [PULL 9/9] target/arm: Correct VMOV_imm_dp handling of short vectors |
Date: |
Thu, 4 Jul 2019 17:08:02 +0100 |
Coverity points out (CID 1402195) that the loop in trans_VMOV_imm_dp()
that iterates over the destination registers in a short-vector VMOV
accidentally throws away the returned updated register number
from vfp_advance_dreg(). Add the missing assignment. (We got this
correct in trans_VMOV_imm_sp().)
Fixes: 18cf951af9a27ae573a
Signed-off-by: Peter Maydell <address@hidden>
Reviewed-by: Richard Henderson <address@hidden>
Message-id: address@hidden
---
target/arm/translate-vfp.inc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target/arm/translate-vfp.inc.c b/target/arm/translate-vfp.inc.c
index deaddb04421..092eb5ec53d 100644
--- a/target/arm/translate-vfp.inc.c
+++ b/target/arm/translate-vfp.inc.c
@@ -1971,7 +1971,7 @@ static bool trans_VMOV_imm_dp(DisasContext *s,
arg_VMOV_imm_dp *a)
/* Set up the operands for the next iteration */
veclen--;
- vfp_advance_dreg(vd, delta_d);
+ vd = vfp_advance_dreg(vd, delta_d);
}
tcg_temp_free_i64(fd);
--
2.20.1
- [Qemu-devel] [PULL 0/9] target-arm queue, Peter Maydell, 2019/07/04
- [Qemu-devel] [PULL 2/9] target/arm: Restrict semi-hosting to TCG, Peter Maydell, 2019/07/04
- [Qemu-devel] [PULL 1/9] target/arm: Move debug routines to debug_helper.c, Peter Maydell, 2019/07/04
- [Qemu-devel] [PULL 6/9] target/arm: Use _ra versions of cpu_stl_data() in v7M helpers, Peter Maydell, 2019/07/04
- [Qemu-devel] [PULL 5/9] target/arm: v8M: Check state of exception being returned from, Peter Maydell, 2019/07/04
- [Qemu-devel] [PULL 7/9] hw/timer/armv7m_systick: Forbid non-privileged accesses, Peter Maydell, 2019/07/04
- [Qemu-devel] [PULL 8/9] target/arm: Execute Thumb instructions when their condbits are 0xf, Peter Maydell, 2019/07/04
- [Qemu-devel] [PULL 9/9] target/arm: Correct VMOV_imm_dp handling of short vectors,
Peter Maydell <=
- [Qemu-devel] [PULL 4/9] arm v8M: Forcibly clear negative-priority exceptions on deactivate, Peter Maydell, 2019/07/04
- [Qemu-devel] [PULL 3/9] target/arm/helper: Move M profile routines to m_helper.c, Peter Maydell, 2019/07/04
- Re: [Qemu-devel] [PULL 0/9] target-arm queue, Peter Maydell, 2019/07/04
- Re: [Qemu-devel] [PULL 0/9] target-arm queue, no-reply, 2019/07/05