Skip to content

RISC-V Add the OpenTitan Machine

Alistair Francis qemu-devel qemu-riscv 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9riscv/boot: Add a missing header includeinclude/hw/riscv/boot.h+1 -00 replies
2/9target/riscv: Don't overwrite the reset vectortarget/riscv/cpu.c+11 -90 replies
3/9target/riscv: Add the lowRISC Ibex CPUtarget/riscv/cpu.c target/riscv/cpu.h+11 -00 replies
4/9riscv: Initial commit of OpenTitan machineMAINTAINERS default-configs/riscv32-softmmu.mak default-configs/riscv64-softmmu.mak +4 more+259 -10 replies
5/9hw/char: Initial commit of Ibex UARTMAINTAINERS hw/char/Makefile.objs hw/char/ibex_uart.c +2 more+604 -00 replies
6/9hw/intc: Initial commit of lowRISC Ibex PLICMAINTAINERS hw/intc/Makefile.objs hw/intc/ibex_plic.c +1 more+327 -00 replies
7/9riscv/opentitan: Connect the PLIC devicehw/riscv/opentitan.c include/hw/riscv/opentitan.h+20 -20 replies
8/9riscv/opentitan: Connect the UART devicehw/riscv/opentitan.c include/hw/riscv/opentitan.h+35 -20 replies
9/9target/riscv: Use a smaller guess size for no-MMU PMPtarget/riscv/pmp.c+14 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH v1 0/9] RISC-V Add the OpenTitan Machine

From: Alistair Francis <[email protected]>

OpenTitan is an open source silicon Root of Trust (RoT) project. This series adds initial support for the OpenTitan machine to QEMU.

This series add the Ibex CPU to the QEMU RISC-V target. It then adds the OpenTitan machine, the Ibex UART and the Ibex PLIC.

The UART has been tested sending data, but not receiving as there is currently no UART receiving support in Tock.

With this series QEMU can boot the OpenTitan ROM, Tock OS and a Tock userspace app.

The Ibex PLIC is similar to the RISC-V PLIC (and is based on the QEMU implementation) with some differences. The hope is that the Ibex PLIC will converge to follow the RISC-V spec. As that happens I want to update the QEMU Ibex PLIC and hopefully eventually replace the current PLIC as the implementation is a little overlay complex.

For more details on OpenTitan, see here: https://docs.opentitan.org/

Alistair Francis (9):
riscv/boot: Add a missing header include target/riscv: Don't overwrite the reset vector target/riscv: Add the lowRISC Ibex CPU
riscv: Initial commit of OpenTitan machine hw/char: Initial commit of Ibex UART hw/intc: Initial commit of lowRISC Ibex PLIC riscv/opentitan: Connect the PLIC device riscv/opentitan: Connect the UART device target/riscv: Use a smaller guess size for no-MMU PMP

 MAINTAINERS                         |  14 +
 default-configs/riscv32-softmmu.mak |   1 +
 default-configs/riscv64-softmmu.mak |  11 +-
 hw/char/Makefile.objs               |   1 +
 hw/char/ibex_uart.c                 | 487 ++++++++++++++++++++++++++++
 hw/intc/Makefile.objs               |   1 +
 hw/intc/ibex_plic.c                 | 261 +++++++++++++++
 hw/riscv/Kconfig                    |   9 +
 hw/riscv/Makefile.objs              |   1 +
 hw/riscv/opentitan.c                | 204 ++++++++++++
 include/hw/char/ibex_uart.h         | 110 +++++++
 include/hw/intc/ibex_plic.h         |  63 ++++
 include/hw/riscv/boot.h             |   1 +
 include/hw/riscv/opentitan.h        |  79 +++++
 target/riscv/cpu.c                  |  30 +-
 target/riscv/cpu.h                  |   1 +
 target/riscv/pmp.c                  |  19 +-
 17 files changed, 1278 insertions(+), 15 deletions(-)
 create mode 100644 hw/char/ibex_uart.c
 create mode 100644 hw/intc/ibex_plic.c
 create mode 100644 hw/riscv/opentitan.c
 create mode 100644 include/hw/char/ibex_uart.h
 create mode 100644 include/hw/intc/ibex_plic.h
 create mode 100644 include/hw/riscv/opentitan.h
Signature · 1 line
2.26.2