All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/4] Support ACLINT 32/64-bit mtimecmp/mtime read/write accesses
@ 2022-04-19  9:08 ` frank.chang
  0 siblings, 0 replies; 16+ messages in thread
From: frank.chang @ 2022-04-19  9:08 UTC (permalink / raw)
  To: qemu-devel; +Cc: Frank Chang, qemu-riscv

From: Frank Chang <frank.chang@sifive.com>

This patchset makes ACLINT mtime to be writable as RISC-V privilege
spec defines that mtime is exposed as a memory-mapped machine-mode
read-write register. Also, mtimecmp and mtime should be 32/64-bit memory
accessible registers. ACLINT reset function is also added, which requires
mtime to be resetable if we need to support core power-gating feature in
the future.

This patchset is the updated verion of:
https://patchew.org/QEMU/20220126095448.2964-1-frank.chang@sifive.com/

Changelog:

v3:
  * Forbid 8-byte write access to timecmp_hi and time_hi.
  * Add ACLINT reset function.

v2:
  * Support 32/64-bit mtimecmp/mtime memory accesses.
  * Add .impl.[min|max]_access_size declaration.

Frank Chang (3):
  hw/intc: Add .impl.[min|max]_access_size declaration in RISC-V ACLINT
  hw/intc: Support 32/64-bit mtimecmp and mtime accesses in RISC-V
    ACLINT
  hw/intc: Make RISC-V ACLINT mtime MMIO register writable

Jim Shu (1):
  hw/intc: riscv_aclint: Add reset function of ACLINT devices

 hw/intc/riscv_aclint.c         | 144 ++++++++++++++++++++++++++-------
 include/hw/intc/riscv_aclint.h |   1 +
 target/riscv/cpu.h             |   8 +-
 target/riscv/cpu_helper.c      |   4 +-
 4 files changed, 121 insertions(+), 36 deletions(-)

--
2.35.1



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

end of thread, other threads:[~2022-04-20  7:57 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-19  9:08 [PATCH v3 0/4] Support ACLINT 32/64-bit mtimecmp/mtime read/write accesses frank.chang
2022-04-19  9:08 ` frank.chang
2022-04-19  9:08 ` [PATCH v3 1/4] hw/intc: Add .impl.[min|max]_access_size declaration in RISC-V ACLINT frank.chang
2022-04-19  9:08   ` frank.chang
2022-04-19  9:08 ` [PATCH v3 2/4] hw/intc: Support 32/64-bit mtimecmp and mtime accesses " frank.chang
2022-04-19  9:08   ` frank.chang
2022-04-19  9:08 ` [PATCH v3 3/4] hw/intc: Make RISC-V ACLINT mtime MMIO register writable frank.chang
2022-04-19  9:08   ` frank.chang
2022-04-20  7:42   ` Alistair Francis
2022-04-20  7:42     ` Alistair Francis
2022-04-20  7:53     ` Frank Chang
2022-04-20  7:53       ` Frank Chang
2022-04-19  9:08 ` [PATCH v3 4/4] hw/intc: riscv_aclint: Add reset function of ACLINT devices frank.chang
2022-04-19  9:08   ` frank.chang
2022-04-20  7:43   ` Alistair Francis
2022-04-20  7:43     ` Alistair Francis

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.