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

Stefan Hajnoczi posted 3 patches 5 years, 9 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20180630091343.14391-1-stefanha@redhat.com
Test checkpatch passed
Test docker-mingw@fedora passed
Test docker-quick@centos7 passed
Test s390x passed
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
[Qemu-devel] [PATCH v2 0/3] arm: add skeleton Cortex M0 CPU model
Posted by Stefan Hajnoczi 5 years, 9 months ago
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

-- 
2.17.1