On Fri, Apr 24, 2026 at 3:07 PM <frank.chang@sifive.com> wrote:
>
> From: Frank Chang <frank.chang@sifive.com>
>
> MISA.C and MISA.X should be set when the following extensions are
> selected:
>
> MISA.C:
> * Zca and not F.
> * Zca, Zcf and F (but not D) is specified (RV32 only).
> * Zca, Zcf and Zcd if D is specified (RV32 only).
> * Zca, Zcd if D is specified (RV64 only)
>
> MISA.X:
> * When there are any non-standard extensions enabled.
>
> This patchset sets MISA.[C|X] bits based on the selected extensions.
>
> Changelog:
> * v4: Warn user if user disables RVC but RVC is mandated by Zca/Zcf/Zcd
> extensions.
> * v3: Rebase to the latest to-apply.next branch.
> * v2: Fix the missing parentheses bug.
>
> Frank Chang (2):
> target/riscv: Update MISA.C for Zc* extensions
> target/riscv: Update MISA.X for non-standard extensions
Thanks!
Applied to riscv-to-apply.next
Alistair
>
> target/riscv/cpu.h | 1 +
> target/riscv/tcg/tcg-cpu.c | 54 ++++++++++++++++++++++++++++++++++++++
> 2 files changed, 55 insertions(+)
>
> --
> 2.43.0
>
>