Integrated: 8342953: RISC-V: Fix definition of RISCV_HWPROBE_EXT_ZVFHMIN

Fei Yang fyang at openjdk.org
Fri Oct 25 11:26:10 UTC 2024


On Thu, 24 Oct 2024 11:05:20 GMT, Fei Yang <fyang at openjdk.org> wrote:

> Hi,
> 
> Please review this trivial change correcting definition of macro `RISCV_HWPROBE_EXT_ZVFHMIN`.
> 
> This macro is supposed to be used when making a `hwprobe` linux syscall for detecting the Zvfhmin extension. 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 [1]. Although it is not used by the JVM for now, it's better to fix it for consistency with the kernel upstream.
> 
> [1] https://github.com/torvalds/linux/commit/5ea6764d9095e234b024054f75ebbccc4f0eb146

This pull request has now been integrated.

Changeset: a9eb50a2
Author:    Fei Yang <fyang at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/a9eb50a2d8341b454c55c2f56446775c497ddde9
Stats:     1 line in 1 file changed: 0 ins; 0 del; 1 mod

8342953: RISC-V: Fix definition of RISCV_HWPROBE_EXT_ZVFHMIN

Reviewed-by: mli, rehn

-------------

PR: https://git.openjdk.org/jdk/pull/21680


More information about the hotspot-runtime-dev mailing list