Skip to contentSkip to conversation

riscv: Add Kunminghu CPU and platform

PATCH Applied Ran Wang 2 participants 3 messages Apr 25, 2025 – Jun 17, 2025

v4 of 5 Applied Latest is v5 →

lore
Share & tools
lore

Ran Wang

author
#0 lore raw

v4 cover riscv: Add Kunminghu CPU and platform

This serial adds Xiangshan Kunminghu CPU and its FPGA prototype platform, which include UART, CLINT, IMSIC, and APLIC devices.

More details can be found at
https://github.com/OpenXiangShan/XiangShan

Patches based on alistair/riscv-to-apply.next

Huang Borong (2):
target/riscv: Add BOSC's Xiangshan Kunminghu CPU hw/riscv: Initial support for BOSC's Xiangshan Kunminghu FPGA
prototype

 MAINTAINERS                                 |   7 +
 configs/devices/riscv64-softmmu/default.mak |   1 +
 docs/system/riscv/xiangshan-kunminghu.rst   |  39 ++++
 docs/system/target-riscv.rst                |   1 +
 hw/riscv/Kconfig                            |   9 +
 hw/riscv/meson.build                        |   1 +
 hw/riscv/xiangshan_kmh.c                    | 220 ++++++++++++++++++++
 include/hw/riscv/xiangshan_kmh.h            |  78 +++++++
 target/riscv/cpu-qom.h                      |   1 +
 target/riscv/cpu.c                          |  64 ++++++
 10 files changed, 421 insertions(+)
 create mode 100644 docs/system/riscv/xiangshan-kunminghu.rst
 create mode 100644 hw/riscv/xiangshan_kmh.c
 create mode 100644 include/hw/riscv/xiangshan_kmh.h
Signature · 1 line
2.34.1
author
#1 lore raw

Hello Alistair,

Could you please comment?

I'd like to know if this version of patch set need any more work.

Thanks & Regards,

Ran

Quoted 29 lines · Ran Wang

This serial adds Xiangshan Kunminghu CPU and its FPGA prototype platform, which include UART, CLINT, IMSIC, and APLIC devices.

More details can be found at
https://github.com/OpenXiangShan/XiangShan

Patches based on alistair/riscv-to-apply.next

Huang Borong (2):
target/riscv: Add BOSC's Xiangshan Kunminghu CPU hw/riscv: Initial support for BOSC's Xiangshan Kunminghu FPGA
prototype

  MAINTAINERS                                 |   7 +
  configs/devices/riscv64-softmmu/default.mak |   1 +
  docs/system/riscv/xiangshan-kunminghu.rst   |  39 ++++
  docs/system/target-riscv.rst                |   1 +
  hw/riscv/Kconfig                            |   9 +
  hw/riscv/meson.build                        |   1 +
  hw/riscv/xiangshan_kmh.c                    | 220 ++++++++++++++++++++
  include/hw/riscv/xiangshan_kmh.h            |  78 +++++++
  target/riscv/cpu-qom.h                      |   1 +
  target/riscv/cpu.c                          |  64 ++++++
  10 files changed, 421 insertions(+)

create mode 100644 docs/system/riscv/xiangshan-kunminghu.rst create mode 100644 hw/riscv/xiangshan_kmh.c
create mode 100644 include/hw/riscv/xiangshan_kmh.h

#2 lore raw
In reply to Ran Wang
Quoted 8 lines · Ran Wang

This serial adds Xiangshan Kunminghu CPU and its FPGA prototype platform, which include UART, CLINT, IMSIC, and APLIC devices.

More details can be found at
https://github.com/OpenXiangShan/XiangShan

Quoted 6 lines

Patches based on alistair/riscv-to-apply.next

Huang Borong (2):
target/riscv: Add BOSC's Xiangshan Kunminghu CPU hw/riscv: Initial support for BOSC's Xiangshan Kunminghu FPGA
prototype

Thanks!

Applied to riscv-to-apply.next

Alistair

Quoted 19 lines
 MAINTAINERS                                 |   7 +
 configs/devices/riscv64-softmmu/default.mak |   1 +
 docs/system/riscv/xiangshan-kunminghu.rst   |  39 ++++
 docs/system/target-riscv.rst                |   1 +
 hw/riscv/Kconfig                            |   9 +
 hw/riscv/meson.build                        |   1 +
 hw/riscv/xiangshan_kmh.c                    | 220 ++++++++++++++++++++
 include/hw/riscv/xiangshan_kmh.h            |  78 +++++++
 target/riscv/cpu-qom.h                      |   1 +
 target/riscv/cpu.c                          |  64 ++++++
 10 files changed, 421 insertions(+)
 create mode 100644 docs/system/riscv/xiangshan-kunminghu.rst
 create mode 100644 hw/riscv/xiangshan_kmh.c
 create mode 100644 include/hw/riscv/xiangshan_kmh.h

--
2.34.1