aboutsummaryrefslogtreecommitdiff
path: root/target/arm/translate-sve.c
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2021-03-09 07:53:03 -0800
committerPeter Maydell <peter.maydell@linaro.org>2021-03-12 12:40:10 +0000
commitf556a201b5bbeb59841b37247969fcfc1ab7bd5d (patch)
tree82139696ccc0a08595d6beb9ef7937b55b3d58ec /target/arm/translate-sve.c
parent04c774a25da78eb07d505ee5923167c2010b9f8c (diff)
downloadqemu-f556a201b5bbeb59841b37247969fcfc1ab7bd5d.zip
qemu-f556a201b5bbeb59841b37247969fcfc1ab7bd5d.tar.gz
qemu-f556a201b5bbeb59841b37247969fcfc1ab7bd5d.tar.bz2
target/arm: Update CNTP for PREDDESC
Since b64ee454a4a0, all predicate operations should be using these field macros for predicates. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20210309155305.11301-7-richard.henderson@linaro.org Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'target/arm/translate-sve.c')
-rw-r--r--target/arm/translate-sve.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c
index c0212e6..722805c 100644
--- a/target/arm/translate-sve.c
+++ b/target/arm/translate-sve.c
@@ -2967,11 +2967,11 @@ static void do_cntp(DisasContext *s, TCGv_i64 val, int esz, int pn, int pg)
} else {
TCGv_ptr t_pn = tcg_temp_new_ptr();
TCGv_ptr t_pg = tcg_temp_new_ptr();
- unsigned desc;
+ unsigned desc = 0;
TCGv_i32 t_desc;
- desc = psz - 2;
- desc = deposit32(desc, SIMD_DATA_SHIFT, 2, esz);
+ desc = FIELD_DP32(desc, PREDDESC, OPRSZ, psz);
+ desc = FIELD_DP32(desc, PREDDESC, ESZ, esz);
tcg_gen_addi_ptr(t_pn, cpu_env, pred_full_reg_offset(s, pn));
tcg_gen_addi_ptr(t_pg, cpu_env, pred_full_reg_offset(s, pg));