qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Set MISA.[C|X] based on the selected extensions
@ 2025-11-14  9:01 frank.chang
  2025-11-14  9:01 ` [PATCH 1/2] target/riscv: Update MISA.C for Zc* extensions frank.chang
  2025-11-14  9:01 ` [PATCH 2/2] target/riscv: Update MISA.X for non-standard extensions frank.chang
  0 siblings, 2 replies; 5+ messages in thread
From: frank.chang @ 2025-11-14  9:01 UTC (permalink / raw)
  To: qemu-devel
  Cc: Palmer Dabbelt, Alistair Francis, Weiwei Li,
	Daniel Henrique Barboza, Liu Zhiwei, open list:RISC-V TCG CPUs,
	Frank Chang

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.

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 | 46 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 47 insertions(+)

--
2.43.0



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-11-17 13:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-14  9:01 [PATCH 0/2] Set MISA.[C|X] based on the selected extensions frank.chang
2025-11-14  9:01 ` [PATCH 1/2] target/riscv: Update MISA.C for Zc* extensions frank.chang
2025-11-17 13:53   ` Daniel Henrique Barboza
2025-11-14  9:01 ` [PATCH 2/2] target/riscv: Update MISA.X for non-standard extensions frank.chang
2025-11-17 13:53   ` Daniel Henrique Barboza

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).