RFR: 8316859: RISC-V: Disable detection of V through HWCAP

Stewart X Addison duke at openjdk.org
Mon Sep 25 16:23:25 UTC 2023


On Mon, 25 Sep 2023 08:38:03 GMT, Ludovic Henry <luhenry at openjdk.org> wrote:

> Some dev boards only support RVV version 0.7, while the OpenJDK only supports RVV version 1.0. These two versions are not compatible with each other. Given the V bit is set through HWCAP on some custom kernels, regardless of the version, it can lead to generating V instructions on boards that don't support RVV version 1.0 (ex: Sipeed LicheePi), leading to a SIGILL.
> 
> That is an acceptable workaround as only Linux Kernel v6.5+ supports V, and that version already support hwprobe anyway

I've built this patch on top of jdk-21+35 and can confirm that it stops the SIGILL on my LicheePi 4A :-)

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

PR Comment: https://git.openjdk.org/jdk/pull/15898#issuecomment-1734076720


More information about the hotspot-runtime-dev mailing list