target/riscv/vector_helper.c: avoid env_archcpu() when reading RISCVCPUConfig
commit86247c51fff458fb238a1690232c16e8425b15d3
authorDaniel Henrique Barboza <dbarboza@ventanamicro.com>
Sun, 26 Feb 2023 17:05:14 +0000 (26 14:05 -0300)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 2 Mar 2023 02:09:45 +0000 (1 18:09 -0800)
treef0273a2f9591ba323a56d5306ccb8220f4408ade
parente130683ffbac5006e57b9f730bbc556044117222
target/riscv/vector_helper.c: avoid env_archcpu() when reading RISCVCPUConfig

This file has several uses of env_archcpu() that are used solely to read
cfg->vlen. Use the new riscv_cpu_cfg() inline instead.

Suggested-by: Weiwei Li <liweiwei@iscas.ac.cn>
Signed-off-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Weiwei Li<liweiwei@iscas.ac.cn>
Message-ID: <20230226170514.588071-3-dbarboza@ventanamicro.com>
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
target/riscv/vector_helper.c