target/arm: Fix mtedesc for do_mem_zpz

The mtedesc that was constructed was not actually passed in.
Found by Coverity (CID 1429996).

Backports commit cdecb3fc1eb182d90666348a47afe63c493686e7 from qemu
This commit is contained in:
Richard Henderson 2021-02-25 23:25:47 -05:00 committed by Lioncash
parent 5b794349d3
commit f403c1f54f

View file

@ -5435,7 +5435,7 @@ static void do_mem_zpz(DisasContext *s, int zt, int pg, int zm,
desc <<= SVE_MTEDESC_SHIFT;
}
desc = simd_desc(vsz, vsz, scale);
t_desc = tcg_const_i32(tcg_ctx, desc);
desc = simd_desc(vsz, vsz, desc | scale);
tcg_gen_addi_ptr(tcg_ctx, t_pg, tcg_ctx->cpu_env, pred_full_reg_offset(s, pg));
tcg_gen_addi_ptr(tcg_ctx, t_zm, tcg_ctx->cpu_env, vec_full_reg_offset(s, zm));