RFR: 8367137: RISC-V: Detect Zicboz block size via hwprobe [v7]
duke
duke at openjdk.org
Fri Sep 12 03:11:47 UTC 2025
On Thu, 11 Sep 2025 01:28:33 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
>
> Dingli Zhang has updated the pull request incrementally with one additional commit since the last revision:
>
> Unify variable names to correspond with comments
@DingliZhang
Your change (at version 4f6a75b8a626bfe6b6f4bc706437c4d59148c98a) is now ready to be sponsored by a Committer.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/27155#issuecomment-3283487425
More information about the hotspot-dev
mailing list