qemu/host/include
TANG Tiancheng f7230e09b1 util: Add RISC-V vector extension probe in cpuinfo
Add support for probing RISC-V vector extension availability in
the backend. This information will be used when deciding whether
to use vector instructions in code generation.

Cache lg2(vlenb) for the backend. The storing of lg2(vlenb) means
we can convert all of the division into subtraction.

While the compiler doesn't support RISCV_HWPROBE_EXT_ZVE64X,
we use RISCV_HWPROBE_IMA_V instead. RISCV_HWPROBE_IMA_V is more
strictly constrainted than RISCV_HWPROBE_EXT_ZVE64X. At least in
current QEMU implemenation, the V vector extension depends on the
zve64d extension.

Signed-off-by: TANG Tiancheng <tangtiancheng.ttc@alibaba-inc.com>
Reviewed-by: Liu Zhiwei <zhiwei_liu@linux.alibaba.com>
Tested-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
Message-ID: <20241007025700.47259-2-zhiwei_liu@linux.alibaba.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
2024-10-22 11:57:25 -07:00
..
aarch64/host util/bufferiszero: Split out host include files 2024-06-19 12:47:11 -07:00
generic/host util/bufferiszero: Split out host include files 2024-06-19 12:47:11 -07:00
i386/host Revert "host/i386: assume presence of SSE2" 2024-06-28 14:44:51 +02:00
loongarch64/host util/bufferiszero: Add loongarch64 vector acceleration 2024-06-19 12:47:11 -07:00
ppc/host ppc: spelling fixes 2023-09-20 07:54:34 +03:00
ppc64/host host/include/ppc: Implement aes-round.h 2023-07-08 07:30:17 +01:00
riscv/host util: Add RISC-V vector extension probe in cpuinfo 2024-10-22 11:57:25 -07:00
x86_64/host util/bufferiszero: Split out host include files 2024-06-19 12:47:11 -07:00