|
From: | Richard Henderson |
Subject: | Re: [PATCH v3 23/51] target/arm: Implement SME RDSVL, ADDSVL, ADDSPL |
Date: | Tue, 21 Jun 2022 17:58:10 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 |
On 6/21/22 10:23, Peter Maydell wrote:
+static bool trans_RDSVL(DisasContext *s, arg_RDSVL *a) +{ + if (!dc_isar_feature(aa64_sme, s)) { + return false; + } + if (sme_enabled_check(s)) { + TCGv_i64 reg = cpu_reg(s, a->rd); + tcg_gen_movi_i64(reg, a->imm * s->svl); + } + return true; +}I think we should define functions that parallel the SVE vec_full_reg_size() and pred_full_reg_size() rather than directly looking at s->svl, for consistency with how we did the SVE code.
I had actually been thinking of removing vec_full_reg_size, at least within SVE. However... done. I've propagated the new predicates forward through the following patches as well.
r~
[Prev in Thread] | Current Thread | [Next in Thread] |