Re: [PATCH 3/3] RISC-V: Add memset-zero expansion to cbo.zero

2024-05-09 Thread Jeff Law
On 5/7/24 11:38 PM, Christoph Müllner wrote: The Zicboz extension offers the cbo.zero instruction, which can be used to clean a memory region corresponding to a cache block. The Zic64b extension defines the cache block size to 64 byte. If both extensions are available, it is possible to use

[PATCH 3/3] RISC-V: Add memset-zero expansion to cbo.zero

2024-05-07 Thread Christoph Müllner
The Zicboz extension offers the cbo.zero instruction, which can be used to clean a memory region corresponding to a cache block. The Zic64b extension defines the cache block size to 64 byte. If both extensions are available, it is possible to use cbo.zero to clear memory, if the alignment and size