qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] Several sstc extension fixes
@ 2025-03-19 19:21 Jim Shu
  2025-03-19 19:21 ` [PATCH 1/4] target/riscv: Add the checking into stimecmp write function Jim Shu
                   ` (4 more replies)
  0 siblings, 5 replies; 12+ messages in thread
From: Jim Shu @ 2025-03-19 19:21 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 | 70 ++++++++++++++++++++++++++++++++++++--
 target/riscv/time_helper.h |  1 +
 4 files changed, 126 insertions(+), 3 deletions(-)

-- 
2.17.1



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

end of thread, other threads:[~2025-04-07 10:07 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-19 19:21 [PATCH 0/4] Several sstc extension fixes Jim Shu
2025-03-19 19:21 ` [PATCH 1/4] target/riscv: Add the checking into stimecmp write function Jim Shu
2025-04-04  3:05   ` Alistair Francis
2025-03-19 19:21 ` [PATCH 2/4] hw/intc: riscv_aclint: Fix mtime write for sstc extension Jim Shu
2025-04-04  3:11   ` Alistair Francis
2025-04-07 10:06     ` Jim Shu
2025-03-19 19:21 ` [PATCH 3/4] target/riscv: Fix VSTIP bit in " Jim Shu
2025-04-04  3:12   ` Alistair Francis
2025-03-19 19:21 ` [PATCH 4/4] target/riscv: Enable/Disable S/VS-mode Timer when STCE bit is changed Jim Shu
2025-04-04  6:02   ` Alistair Francis
2025-04-07  9:42     ` Jim Shu
2025-04-02  2:35 ` [PATCH 0/4] Several sstc extension fixes Jim Shu

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