Integrated: 8367137: RISC-V: Detect Zicboz block size via hwprobe
Dingli Zhang
dzhang at openjdk.org
Fri Sep 12 03:38:32 UTC 2025
On Tue, 9 Sep 2025 03:14:42 GMT, Dingli Zhang <dzhang at openjdk.org> wrote:
> 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 zicboz_block_size.
> 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
This pull request has now been integrated.
Changeset: 5abd1842
Author: Dingli Zhang <dzhang at openjdk.org>
Committer: Fei Yang <fyang at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/5abd18426d64f878ca45f9d36ca270be17a7760f
Stats: 60 lines in 5 files changed: 10 ins; 0 del; 50 mod
8367137: RISC-V: Detect Zicboz block size via hwprobe
Reviewed-by: fyang, mli, rehn
-------------
PR: https://git.openjdk.org/jdk/pull/27155
More information about the hotspot-dev
mailing list