[PATCH v2 1/2] riscv: lib: Introduce has_fast_misaligned_access function

Eric Biggers ebiggers at kernel.org
Fri Feb 2 14:49:39 PST 2024


On Thu, Feb 01, 2024 at 03:30:45PM -0800, Charlie Jenkins wrote:
> -	if (((unsigned long)buff & OFFSET_MASK) == 0)
> +	if (has_fast_misaligned_accesses() || (((unsigned long)buff & OFFSET_MASK) == 0b101))
>  		return do_csum_no_alignment(buff, len);

Why did the 0 change into 0b101?

- Eric



More information about the linux-riscv mailing list