mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-01-11 07:55:34 +00:00
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:
parent
5b794349d3
commit
f403c1f54f
|
@ -5435,7 +5435,7 @@ static void do_mem_zpz(DisasContext *s, int zt, int pg, int zm,
|
||||||
desc <<= SVE_MTEDESC_SHIFT;
|
desc <<= SVE_MTEDESC_SHIFT;
|
||||||
}
|
}
|
||||||
desc = simd_desc(vsz, vsz, scale);
|
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_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));
|
tcg_gen_addi_ptr(tcg_ctx, t_zm, tcg_ctx->cpu_env, vec_full_reg_offset(s, zm));
|
||||||
|
|
Loading…
Reference in a new issue