RFR: 8367137: RISC-V: Detect Zicboz block size via hwprobe
Dingli Zhang
dzhang at openjdk.org
Tue Sep 9 04:22:41 UTC 2025
Hi,
Can you help to review this patch? Thanks!
We can extends RISC-V hwprobe support to include `RISCV_HWPROBE_KEY_ZICBOZ_BLOCK_SIZE`.
The probed value is recorded in VM_Version::zicboz_block_size and then used to set the global CacheLineSize.
This ensures correct usage of the Zicboz extension, as block zeroing instructions operate on cache-line granularity.
FYI: https://docs.kernel.org/arch/riscv/hwprobe.html
-------------
Commit messages:
- fix typo
- RISC-V: Add riscv_hwprobe syscall for zicboz block size
Changes: https://git.openjdk.org/jdk/pull/27155/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=27155&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8367137
Stats: 51 lines in 3 files changed: 11 ins; 0 del; 40 mod
Patch: https://git.openjdk.org/jdk/pull/27155.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/27155/head:pull/27155
PR: https://git.openjdk.org/jdk/pull/27155
More information about the hotspot-dev
mailing list