RFR: 8356875: RISC-V: extension flag UseZvfh should depends on UseZfh

Hamlin Li mli at openjdk.org
Wed May 14 12:45:55 UTC 2025


On Wed, 14 May 2025 08:51:57 GMT, Hamlin Li <mli at openjdk.org> wrote:

>> One question: Not sure if I understand you correctly, seems to me Zfh is also detected and automatically set by hwprobe when running with qemu?
>
> For this pr, it tries to address the situation: when neither Zfh/Zvfh can not be enabled automatically (no matter what's the reason), so user could enable Zvfh manually to get some optimization, in that case it will fail to get such optimization even if with -XX:+PrintFlagsFinal it shows that UseZvfh == true, this is very confusing.
> So to make this situation more understanable for user (maybe more for developer) of jdk, we'd better to automatically unset UseZvfh when UseZfh is false.

Thanks for discussion.
Yes, short answer is this pr could also solve the issue you mentioned above for qemu.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/25213#discussion_r2088852853


More information about the hotspot-dev mailing list