]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/riscv: Fix the element agnostic function problem
authorHuang Tao <eric.huang@linux.alibaba.com>
Mon, 25 Mar 2024 02:16:54 +0000 (10:16 +0800)
committerAlistair Francis <alistair.francis@wdc.com>
Mon, 3 Jun 2024 01:12:12 +0000 (11:12 +1000)
commit75115d880c6d396f8a2d56aab8c12236d85a90e0
treef59428661296352996f837aa0a5855330f785b86
parent4a90991234f003d8fe55919e84bf3ec7d542830e
target/riscv: Fix the element agnostic function problem

In RVV and vcrypto instructions, the masked and tail elements are set to 1s
using vext_set_elems_1s function if the vma/vta bit is set. It is the element
agnostic policy.

However, this function can't deal the big endian situation. This patch fixes
the problem by adding handling of such case.

Signed-off-by: Huang Tao <eric.huang@linux.alibaba.com>
Suggested-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: LIU Zhiwei <zhiwei_liu@linux.alibaba.com>
Cc: qemu-stable <qemu-stable@nongnu.org>
Message-ID: <20240325021654.6594-1-eric.huang@linux.alibaba.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
target/riscv/vector_internals.c