linux-user/riscv: Fix definition of RISCV_HWPROBE_EXT_ZVFHMIN
authorYao Zi <ziyao@disroot.org>
Tue, 22 Oct 2024 16:01:37 +0000 (16:01 +0000)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 22 Oct 2024 20:45:03 +0000 (13:45 -0700)
commit310df7a9fe400f32cde8a7edf80daad12cd9cf02
tree45bae85f916df63930061ac1cb50668ef036e663
parentc12df59de99c7e7e79586cfe1ca4a8e50ff04cbc
linux-user/riscv: Fix definition of RISCV_HWPROBE_EXT_ZVFHMIN

Current definition yields a negative 32bits value, messing up hwprobe
result when Zvfhmin extension presents. Replace it by using a 1ULL bit
shift value as done in kernel upstream.

Link: https://github.com/torvalds/linux/commit/5ea6764d9095e234b024054f75ebbccc4f0eb146
Fixes: a3432cf227 ("linux-user/riscv: Sync hwprobe keys with Linux")
Cc: qemu-stable@nongnu.org
Signed-off-by: Yao Zi <ziyao@disroot.org>
Message-ID: <20241022160136.21714-2-ziyao@disroot.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
linux-user/syscall.c