On Tue, Sep 15, 2026 at 12:03 PM Trevor Gamblin <[email protected]>
wrote:

> Only riscv64gc enables this by default, but we need it for the Linux
> Kernel. Append it to the official profile strings.
>
> Signed-off-by: Trevor Gamblin <[email protected]>
> ---
>  meta/conf/machine/include/riscv/tune-riscv.inc | 8 +++++---
>  1 file changed, 5 insertions(+), 3 deletions(-)
>
> diff --git a/meta/conf/machine/include/riscv/tune-riscv.inc
> b/meta/conf/machine/include/riscv/tune-riscv.inc
> index 64d1f89dc6..9357dc67a0 100644
> --- a/meta/conf/machine/include/riscv/tune-riscv.inc
> +++ b/meta/conf/machine/include/riscv/tune-riscv.inc
> @@ -4,13 +4,15 @@ DEFAULTTUNE ?= "riscv64gc"
>
>  AVAILTUNES += "rva23u64 rva22u64 rva20u64 riscv64gcv riscv64gc riscv32gc
> riscv64nc riscv64nf riscv32nf"
>
> -TUNE_FEATURES:tune-rva20u64 := "${@oe.tune.riscv_isa_to_tune("rva20u64")}"
> +# zifencei isn't part of these profiles per gcc's -march expansion, but
> the
> +# Linux kernel requires it, so add it on top of the profile's extensions.
> +TUNE_FEATURES:tune-rva20u64 := "${@oe.tune.riscv_isa_to_tune("rva20u64")}
> zifencei"
>  PACKAGE_EXTRA_ARCHS:tune-rva20u64 = "${TUNE_RISCV_PKGARCH}"
>
> -TUNE_FEATURES:tune-rva22u64 := "${@oe.tune.riscv_isa_to_tune("rva22u64")}"
> +TUNE_FEATURES:tune-rva22u64 := "${@oe.tune.riscv_isa_to_tune("rva22u64")}
> zifencei"
>  PACKAGE_EXTRA_ARCHS:tune-rva22u64 = "${TUNE_RISCV_PKGARCH}"
>
> -TUNE_FEATURES:tune-rva23u64 := "${@oe.tune.riscv_isa_to_tune("rva23u64")}"
> +TUNE_FEATURES:tune-rva23u64 := "${@oe.tune.riscv_isa_to_tune("rva23u64")}
> zifencei"
>  PACKAGE_EXTRA_ARCHS:tune-rva23u64 = "${TUNE_RISCV_PKGARCH}"
>
>
Fold this into patch 0005 so bisecting is not broken in future least
someone lands in between 0005 patch
and 0013, since The rva* tunes have no zifencei until this patch.


>  # Default
> --
> 2.55.0
>
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#246250): 
https://lists.openembedded.org/g/openembedded-core/message/246250
Mute This Topic: https://lists.openembedded.org/mt/121267448/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to