All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Fix alignment check for misa write
@ 2026-08-17 15:06 Vladimir Isaev
  2026-08-17 15:06 ` [PATCH v2 1/2] riscv: csr: do not drop C bit on " Vladimir Isaev
  2026-08-17 15:06 ` [PATCH v2 2/2] tests/tcg/riscv64: add misa write test Vladimir Isaev
  0 siblings, 2 replies; 3+ messages in thread
From: Vladimir Isaev @ 2026-08-17 15:06 UTC (permalink / raw)
  To: qemu-devel
  Cc: palmer, alistair.francis, liwei1518, daniel.barboza, zhiwei_liu,
	chao.liu, qemu-riscv, joel, npiggin, Vladimir Isaev

Current version disable misa.C on misa write when next instruciton is
not aligned, fix it and add test.

Changes from v1:
  - Use the test from https://lore.kernel.org/r/20260321144554.606417-2-npiggin@gmail.com,
    since it is much more comprehensive than mine.
  - Add GUEST_ERROR_LOG on a bad write attempt.

Vladimir Isaev (2):
  riscv: csr: do not drop C bit on misa write
  tests/tcg/riscv64: add misa write test

 target/riscv/tcg/csr.c                    | 10 ++-
 tests/tcg/riscv64/Makefile.softmmu-target |  4 ++
 tests/tcg/riscv64/test-misa-w.S           | 88 +++++++++++++++++++++++
 3 files changed, 99 insertions(+), 3 deletions(-)
 create mode 100644 tests/tcg/riscv64/test-misa-w.S

-- 
2.55.0



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

end of thread, other threads:[~2026-08-17 15:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-17 15:06 [PATCH v2 0/2] Fix alignment check for misa write Vladimir Isaev
2026-08-17 15:06 ` [PATCH v2 1/2] riscv: csr: do not drop C bit on " Vladimir Isaev
2026-08-17 15:06 ` [PATCH v2 2/2] tests/tcg/riscv64: add misa write test Vladimir Isaev

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.