Skip to content

RISC-V: SoCify SiFive boards and connect GEM

Alistair Francis qemu-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest7 patches 3 repliesIn review
  2. v27 patches 4 repliesSuperseded
  3. v14 patches 4 repliesSuperseded

Changes in v3 from the cover letter

- Generalise the SoC names

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7hw/riscv/sifive_u: Create a SiFive U SoC objecthw/riscv/sifive_u.c include/hw/riscv/sifive_u.h+82 -240 replies
2/7hw/riscv/sifive_e: Create a SiFive E SoC objecthw/riscv/sifive_e.c include/hw/riscv/sifive_e.h+86 -271 reply
3/7hw/riscv/sifive_plic: Use gpios instead of irqshw/riscv/sifive_e.c hw/riscv/sifive_plic.c hw/riscv/sifive_u.c +2 more+9 -120 replies
4/7hw/riscv/sifive_u: Set the soc device tree node as a simple-bushw/riscv/sifive_u.c+1 -12 replies
5/7hw/riscv/sifive_u: Set the interrupt controler number of interruptshw/riscv/sifive_u.c+1 -10 replies
6/7hw/riscv/sifive_u: Move the uart device tree node under /soc/hw/riscv/sifive_u.c+1 -10 replies
7/7hw/riscv/sifive_u: Connect the Cadence GEM Ethernet devicedefault-configs/riscv32-softmmu.mak default-configs/riscv64-softmmu.mak hw/riscv/sifive_u.c +1 more+59 -20 replies

Reviews trailers per patch

All 7 patches have a Reviewed-by or Acked-by.

PatchMichael ClarkPhilippe Mathieu-Daudé
1/7R-b
2/7R-b
3/7R-b R-b
4/7R-b
5/7R-b
6/7R-b
7/7R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [Qemu-devel] [PATCH v3 0/7] RISC-V: SoCify SiFive boards and connect GEM

This series has three tasks:
1. To convert the SiFive U and E machines into SoCs and boards
2. To connect the Cadence GEM device to the SiFive U board
3. Fix some device tree problems with the SiFive U board

After this series the SiFive E and U boards have their SoCs split into seperate QEMU objects, which can be used on future boards if desired.

The RISC-V Virt and Spike boards have not been converted. They haven't been converted as they aren't physical boards, so it doesn't make a whole lot of sense to split them into an SoC and board. The only disadvantage with this is that they now differ to the SiFive boards.

This series also connect the Cadence GEM device to the SiFive U board. There are some interrupt line changes requried before this is possible.

V3:
- Generalise the SoC names
V2:
- Use the new GPIOs everywhere in the board
- Add the GEM device tree node
- Fix some device tree problems identified

Alistair Francis (7):
hw/riscv/sifive_u: Create a SiFive U SoC object hw/riscv/sifive_e: Create a SiFive E SoC object hw/riscv/sifive_plic: Use gpios instead of irqs hw/riscv/sifive_u: Set the soc device tree node as a simple-bus hw/riscv/sifive_u: Set the interrupt controler number of interrupts hw/riscv/sifive_u: Move the uart device tree node under /soc/ hw/riscv/sifive_u: Connect the Cadence GEM Ethernet device

 default-configs/riscv32-softmmu.mak |   1 +
 default-configs/riscv64-softmmu.mak |   1 +
 hw/riscv/sifive_e.c                 | 102 ++++++++++++++-----
 hw/riscv/sifive_plic.c              |   6 +-
 hw/riscv/sifive_u.c                 | 151 +++++++++++++++++++++++-----
 hw/riscv/virt.c                     |   4 +-
 include/hw/riscv/sifive_e.h         |  16 ++-
 include/hw/riscv/sifive_plic.h      |   1 -
 include/hw/riscv/sifive_u.h         |  25 ++++-
 9 files changed, 239 insertions(+), 68 deletions(-)
Signature · 1 line
2.17.0