]> 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)
committerMichael Tokarev <mjt@tls.msk.ru>
Wed, 5 Jun 2024 10:03:41 +0000 (13:03 +0300)
commitec182b104584a3b2160ab1229e7529cafea3ac38
tree1fe85aeaec3b03fa6739a0375ee2019d28971866
parentcf7143fdb7e8fe4ee09c2701796e2aceb862d19f
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>
(cherry picked from commit 75115d880c6d396f8a2d56aab8c12236d85a90e0)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
target/riscv/vector_internals.c