summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Henderson2020-07-13 15:36:07 +0200
committerPeter Maydell2020-07-13 15:36:07 +0200
commitcdecb3fc1eb182d90666348a47afe63c493686e7 (patch)
tree818d556c87371fdbe1af649629542c81d50d0d03
parenthw/arm/bcm2836: Remove unused 'cpu_type' field (diff)
downloadqemu-cdecb3fc1eb182d90666348a47afe63c493686e7.tar.gz
qemu-cdecb3fc1eb182d90666348a47afe63c493686e7.tar.xz
qemu-cdecb3fc1eb182d90666348a47afe63c493686e7.zip
target/arm: Fix mtedesc for do_mem_zpz
The mtedesc that was constructed was not actually passed in. Found by Coverity (CID 1429996). Fixes: d28d12f008e Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-id: 20200706202345.193676-1-richard.henderson@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
-rw-r--r--target/arm/translate-sve.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c
index 08f0fd15b2..88a2fb271d 100644
--- a/target/arm/translate-sve.c
+++ b/target/arm/translate-sve.c
@@ -5275,7 +5275,7 @@ static void do_mem_zpz(DisasContext *s, int zt, int pg, int zm,
desc = FIELD_DP32(desc, MTEDESC, ESIZE, 1 << msz);
desc <<= SVE_MTEDESC_SHIFT;
}
- desc = simd_desc(vsz, vsz, scale);
+ desc = simd_desc(vsz, vsz, desc | scale);
t_desc = tcg_const_i32(desc);
tcg_gen_addi_ptr(t_pg, cpu_env, pred_full_reg_offset(s, pg));