qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/4] Several sstc extension fixes
@ 2025-04-09  2:51 Jim Shu
  2025-04-09  2:51 ` [PATCH v2 1/4] target/riscv: Add the checking into stimecmp write function Jim Shu
                   ` (5 more replies)
  0 siblings, 6 replies; 10+ messages in thread
From: Jim Shu @ 2025-04-09  2:51 UTC (permalink / raw)
  To: qemu-devel, qemu-riscv
  Cc: Palmer Dabbelt, Alistair Francis, Weiwei Li,
	Daniel Henrique Barboza, Liu Zhiwei, Jim Shu

This patch series contains several sstc fixes:

(1) Writing to ACLINT mtime should also update the period of S/VS-mode
    timer, just like M-mode timer.
(2) VSTIP bit of $mip CSR should check both M-mode and H-mode STCE.
(3) Writing to STCE bit may enable/disable sstc extension in S/VS-mode,
    which should update the timer and IRQ pending bits.


Jim Shu (4):
  target/riscv: Add the checking into stimecmp write function.
  hw/intc: riscv_aclint: Fix mtime write for sstc extension
  target/riscv: Fix VSTIP bit in sstc extension.
  target/riscv: Enable/Disable S/VS-mode Timer when STCE bit is changed

 hw/intc/riscv_aclint.c     |  5 +++
 target/riscv/csr.c         | 53 ++++++++++++++++++++++++++++++-
 target/riscv/time_helper.c | 65 ++++++++++++++++++++++++++++++++++++--
 target/riscv/time_helper.h |  1 +
 4 files changed, 121 insertions(+), 3 deletions(-)

-- 
2.17.1



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

end of thread, other threads:[~2025-05-19  3:26 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-09  2:51 [PATCH v2 0/4] Several sstc extension fixes Jim Shu
2025-04-09  2:51 ` [PATCH v2 1/4] target/riscv: Add the checking into stimecmp write function Jim Shu
2025-04-09  2:51 ` [PATCH v2 2/4] hw/intc: riscv_aclint: Fix mtime write for sstc extension Jim Shu
2025-05-19  0:38   ` Alistair Francis
2025-04-09  2:51 ` [PATCH v2 3/4] target/riscv: Fix VSTIP bit in " Jim Shu
2025-04-09  2:51 ` [PATCH v2 4/4] target/riscv: Enable/Disable S/VS-mode Timer when STCE bit is changed Jim Shu
2025-05-19  0:44   ` Alistair Francis
2025-04-09  2:58 ` [PATCH v2 0/4] Several sstc extension fixes Jim Shu
2025-04-29  2:27   ` Jim Shu
2025-05-19  3:24 ` Alistair Francis

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).