diff options
author | 2023-02-26 14:05:13 -0300 | |
---|---|---|
committer | 2023-03-01 18:09:44 -0800 | |
commit | e130683ffbac5006e57b9f730bbc556044117222 (patch) | |
tree | 256621d2e6bc09b21b0bacf2c8ccbc48804a2b47 /scripts/coverage/compare_gcov_json.py | |
parent | target/riscv: introduce riscv_cpu_cfg() (diff) | |
download | qemu-e130683ffbac5006e57b9f730bbc556044117222.tar.xz qemu-e130683ffbac5006e57b9f730bbc556044117222.zip |
target/riscv/vector_helper.c: create vext_set_tail_elems_1s()
Commit 752614cab8e6 ("target/riscv: rvv: Add tail agnostic for vector
load / store instructions") added code to set the tail elements to 1 in
the end of vext_ldst_stride(), vext_ldst_us(), vext_ldst_index() and
vext_ldff(). Aside from a env->vl versus an evl value being used in the
first loop, the code is being repeated 4 times.
Create a helper to avoid code repetition in all those functions.
Arguments that are used in the callers (nf, esz and max_elems) are
passed as arguments. All other values are being derived inside the
helper.
Reviewed-by: Weiwei Li <liweiwei@iscas.ac.cn>
Reviewed-by: Frank Chang <frank.chang@sifive.com>
Signed-off-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
Message-ID: <20230226170514.588071-2-dbarboza@ventanamicro.com>
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'scripts/coverage/compare_gcov_json.py')
0 files changed, 0 insertions, 0 deletions