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:
* 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
target/riscv/cpu.h | 1 +
target/riscv/tcg/tcg-cpu.c | 47 ++++++++++++++++++++++++++++++++++++++
2 files changed, 48 insertions(+)
--
2.43.0