Skip to content

arm: add skeleton Cortex M0 CPU model

Stefan Hajnoczi qemu-arm qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 6 repliesIn review
  2. v1 RFC2 patches 3 repliesSuperseded

Changes in v2 from the cover letter

* Share code between ARMv6-M and ARMv7-M [Peter]

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3hw/arm: extract ARM M Profile base class from ARMv7-Mdefault-configs/arm-softmmu.mak hw/arm/Makefile.objs hw/arm/arm-m-profile.c +10 more+314 -1664 replies
2/3hw/arm: add ARMv6M objectdefault-configs/arm-softmmu.mak hw/arm/Makefile.objs hw/arm/armv6m.c +1 more+49 -01 reply
3/3target/arm: add "cortex-m0" CPU modeltarget/arm/cpu.c+11 -01 reply

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchPeter Maydell
1/3
2/3R-b
3/3R-b

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

Read the v2 thread

Cover letter [Qemu-arm] [PATCH v2 0/3] arm: add skeleton Cortex M0 CPU model

v2:
* Share code between ARMv6-M and ARMv7-M [Peter]

This patch series adds a skeleton ARM Cortex M0 CPU model and an ARMv6M object so that machine types can make use of it.

These patches cannot be merged until Julia Suvorova's Cortex M0 work is complete, since the target/arm/ code does not implement ARMv6-M behavior faithfully yet.

The micro:bit emulation will be the first machine type to make use of ARMv6-M.

Stefan Hajnoczi (3):
hw/arm: extract ARM M Profile base class from ARMv7-M hw/arm: add ARMv6M object
target/arm: add "cortex-m0" CPU model

 hw/arm/Makefile.objs            |   2 +
 include/hw/arm/arm-m-profile.h  |  65 +++++++++++
 include/hw/arm/arm.h            |  11 +-
 include/hw/arm/armv6m.h         |  24 ++++
 include/hw/arm/armv7m.h         |  22 +---
 hw/arm/arm-m-profile.c          | 192 ++++++++++++++++++++++++++++++++
 hw/arm/armv6m.c                 |  23 ++++
 hw/arm/armv7m.c                 | 166 ++++++---------------------
 hw/arm/mps2-tz.c                |   3 +-
 hw/arm/mps2.c                   |   4 +-
 hw/arm/msf2-soc.c               |   4 +-
 hw/arm/msf2-som.c               |   4 +-
 hw/arm/netduino2.c              |   4 +-
 hw/arm/stellaris.c              |   3 +-
 target/arm/cpu.c                |  11 ++
 default-configs/arm-softmmu.mak |   2 +
 16 files changed, 374 insertions(+), 166 deletions(-)
 create mode 100644 include/hw/arm/arm-m-profile.h
 create mode 100644 include/hw/arm/armv6m.h
 create mode 100644 hw/arm/arm-m-profile.c
 create mode 100644 hw/arm/armv6m.c
Signature · 1 line
2.17.1