qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2  0/5] Implement Sstc extension
@ 2022-04-26 23:08 Atish Patra
  2022-04-26 23:08 ` [PATCH v2 1/5] hw/intc: Move mtimer/mtimecmp to aclint Atish Patra
                   ` (4 more replies)
  0 siblings, 5 replies; 13+ messages in thread
From: Atish Patra @ 2022-04-26 23:08 UTC (permalink / raw)
  To: qemu-devel
  Cc: qemu-riscv, Juan Quintela, Bin Meng, Atish Patra,
	Dr. David Alan Gilbert, Alistair Francis, Palmer Dabbelt

This series implements Sstc extension[1] which was ratified recently.

The first patch is a prepartory patches while PATCH 2 adds stimecmp
support while PATCH 3 adds vstimecmp support. This series is based on
on top of upstream commit (faee5441a038).

The series can also be found at
https://github.com/atishp04/qemu/tree/sstc_v2

It is tested on RV32 & RV64 with additional OpenSBI[2] & Linux kernel[3]
patches.

Changes from v1->v2:
1. Rebased on the latest upstream commit.
2. Replaced PATCH 1 with another patch where mtimer/timecmp is
   moved from CPU to ACLINT.
3. Added ACLINT migration support.

[1] https://drive.google.com/file/d/1m84Re2yK8m_vbW7TspvevCDR82MOBaSX/view
[2] https://github.com/atishp04/opensbi/tree/sstc_v2
[3] https://github.com/atishp04/linux/tree/sstc_v3

Atish Patra (5):
hw/intc: Move mtimer/mtimecmp to aclint
migration: Add 64bit variable array data type
hw/intc: Support migration of aclint device
target/riscv: Add stimecmp support
target/riscv: Add vstimecmp support

hw/intc/riscv_aclint.c         |  41 +++++---
hw/timer/ibex_timer.c          |  20 ++--
include/hw/intc/riscv_aclint.h |   2 +
include/hw/timer/ibex_timer.h  |   2 +
include/migration/vmstate.h    |  11 ++
migration/vmstate.c            |   2 +
target/riscv/cpu.c             |   8 ++
target/riscv/cpu.h             |  10 +-
target/riscv/cpu_bits.h        |   8 ++
target/riscv/cpu_helper.c      |  11 +-
target/riscv/csr.c             | 181 +++++++++++++++++++++++++++++++++
target/riscv/machine.c         |   3 +-
target/riscv/meson.build       |   3 +-
target/riscv/time_helper.c     | 114 +++++++++++++++++++++
target/riscv/time_helper.h     |  30 ++++++
15 files changed, 415 insertions(+), 31 deletions(-)
create mode 100644 target/riscv/time_helper.c
create mode 100644 target/riscv/time_helper.h

--
2.25.1



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

end of thread, other threads:[~2022-04-27 12:43 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-26 23:08 [PATCH v2 0/5] Implement Sstc extension Atish Patra
2022-04-26 23:08 ` [PATCH v2 1/5] hw/intc: Move mtimer/mtimecmp to aclint Atish Patra
2022-04-27  0:50   ` Richard Henderson
2022-04-27  2:33     ` Atish Kumar Patra
2022-04-27 12:38       ` Dr. David Alan Gilbert
2022-04-26 23:08 ` [PATCH v2 2/5] migration: Add 64bit variable array data type Atish Patra
2022-04-27  0:50   ` Richard Henderson
2022-04-27  2:36     ` Atish Kumar Patra
2022-04-26 23:08 ` [PATCH v2 3/5] hw/intc: Support migration of aclint device Atish Patra
2022-04-27  0:51   ` Richard Henderson
2022-04-26 23:08 ` [PATCH v2 4/5] target/riscv: Add stimecmp support Atish Patra
2022-04-27  0:54   ` Richard Henderson
2022-04-26 23:08 ` [PATCH v2 5/5] target/riscv: Add vstimecmp support Atish Patra

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