RFR: 8367098: RISC-V: sync CPU features with related JVM flags for dependant ones

Hamlin Li mli at openjdk.org
Mon Sep 8 12:23:45 UTC 2025


Hi,
Can you help to review this patch?

some extensions depends on another one, for example, zvbb depends on rvv.
That means if rvv is disabled or not supported by the CPU, UseZvbb should return false, and zvbb should not appear in cpu string.
But the currently, the cpu string contains zvbb even if rvv is disabled, which is not right.
This needs to be fixed.

Thanks

before fix, output for `-XX-UseRVV -Xlog:cpu*=debug`

[0.064s][info ][os,cpu] CPU: total 32 (initial active 32) qemu rv64 rvi rvm rva rvf rvd rvc rvv zicbom zicboz zicbop zba zbb zbs zbkb zcb zfa zfh zfhmin zicsr zifencei zic64b ztso zacas zvbb zvbc zvfh zicond


after fix, output for `-XX-UseRVV -Xlog:cpu*=debug`

[0.065s][info ][os,cpu] CPU: total 32 (initial active 32) qemu rv64 rvi rvm rva rvf rvd rvc zicbom zicboz zicbop zba zbb zbs zbkb zcb zfa zfh zfhmin zicsr zifencei zic64b ztso zacas zicond

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

Commit messages:
 - initial commit

Changes: https://git.openjdk.org/jdk/pull/27142/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=27142&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8367098
  Stats: 21 lines in 1 file changed: 2 ins; 0 del; 19 mod
  Patch: https://git.openjdk.org/jdk/pull/27142.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/27142/head:pull/27142

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


More information about the hotspot-dev mailing list