Skip to content

Make it possible to compile with CONFIG_ARM_V7M=n

Thomas Huth qemu-arm qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 23 repliesIn review

Changes in v1 from the cover letter

- Move the definitions into internals.h instead of cpu.h in the 1st patch
- Instead of creating an ugly stubs file, simply make armv7m_nvic.c mandatory for linking.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4target/arm: Make cpu_register() and set_feature() available for other filestarget/arm/cpu.c target/arm/cpu64.c target/arm/internals.h+21 -341 reply
2/4target/arm: Move cortex-m related functions to new file v7m.ctarget/arm/Makefile.objs target/arm/cpu.c target/arm/v7m.c+194 -14610 replies
3/4hw/arm: Move armv7m_nvic.c to hw/arm/ and always enable it for arm buildshw/arm/Makefile.objs hw/arm/armv7m_nvic.c hw/arm/trace-events +2 more+19 -189 replies
4/4default-configs: Do not enforce CONFIG_ARM_V7M anymoredefault-configs/arm-softmmu.mak+0 -30 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchEric Auger
1/4R-b
2/4
3/4
4/4

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

Read the v1 thread

Cover letter [PATCH 0/4] Make it possible to compile with CONFIG_ARM_V7M=n

We've got CONFIG_ARM_V7M, but it currently can't be disabled. Here are some patches that should allow to disable the switch (if the corresponding boards are disabled, too).

RFC -> v1:
- Move the definitions into internals.h instead of cpu.h in the 1st patch
- Instead of creating an ugly stubs file, simply make armv7m_nvic.c mandatory for linking.

Thomas Huth (4):
target/arm: Make cpu_register() and set_feature() available for other
files
target/arm: Move cortex-m related functions to new file v7m.c hw/arm: Move armv7m_nvic.c to hw/arm/ and always enable it for arm
builds
default-configs: Do not enforce CONFIG_ARM_V7M anymore

 default-configs/arm-softmmu.mak |   3 -
 hw/arm/Makefile.objs            |   2 +
 hw/{intc => arm}/armv7m_nvic.c  |   0
 hw/arm/trace-events             |  17 +++
 hw/intc/Makefile.objs           |   1 -
 hw/intc/trace-events            |  17 ---
 target/arm/Makefile.objs        |   1 +
 target/arm/cpu.c                | 166 +--------------------------
 target/arm/cpu64.c              |  17 +--
 target/arm/internals.h          |  18 +++
 target/arm/v7m.c                | 193 ++++++++++++++++++++++++++++++++
 11 files changed, 234 insertions(+), 201 deletions(-)
 rename hw/{intc => arm}/armv7m_nvic.c (100%)
 create mode 100644 target/arm/v7m.c
Signature · 1 line
2.18.1