Skip to content

hw/arm/v7m: Remove Cortex-M &first_cpu uses

Philippe Mathieu-Daudé qemu-arm qemu-devel 1 version Applied

Status from this message: Applied to target-arm.next, thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 6 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3hw/arm/nrf51: Rename ARMv7MState 'cpu' -> 'armv7m'hw/arm/nrf51_soc.c include/hw/arm/nrf51_soc.h+10 -101 reply
2/3hw/arm/stellaris: Add 'armv7m' local variablehw/arm/stellaris.c+11 -102 replies
3/3hw/arm/v7m: Remove use of &first_cpu in machine_init()hw/arm/b-l475e-iot01a.c hw/arm/microbit.c hw/arm/mps2-tz.c +8 more+11 -112 replies

Reviews trailers per patch

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

PatchAlistair FrancisSamuel Tardieu
1/3R-b
2/3R-b
3/3R-b R-b

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/3] hw/arm/v7m: Remove Cortex-M &first_cpu uses

After renaming a pair of fields in NRF51 & Stellaris boards, remove the &first_cpu global uses in Cortex-M boards.

Rational is &first_cpu is going to be restricted to generic accelerator code, then be removed. Similarly the global 'cpus_queue' containing target-agnostic CPUs is going to be restricted to generic accelerator, thus hw/ won't have direct access to it anymore.

Note, Cortex-A boards already have been dealt with in
https://lore.kernel.org/qemu-devel/[email protected]/
"hw/cpu/arm: Remove one use of qemu_get_cpu() in A7/A15 MPCore priv"

Philippe Mathieu-Daudé (3):
hw/arm/nrf51: Rename ARMv7MState 'cpu' -> 'armv7m' hw/arm/stellaris: Add 'armv7m' local variable hw/arm/v7m: Remove use of &first_cpu in machine_init()

 include/hw/arm/nrf51_soc.h |  2 +-
 hw/arm/b-l475e-iot01a.c    |  2 +-
 hw/arm/microbit.c          |  2 +-
 hw/arm/mps2-tz.c           |  2 +-
 hw/arm/mps2.c              |  2 +-
 hw/arm/msf2-som.c          |  2 +-
 hw/arm/musca.c             |  2 +-
 hw/arm/netduino2.c         |  2 +-
 hw/arm/netduinoplus2.c     |  2 +-
 hw/arm/nrf51_soc.c         | 18 +++++++++---------
 hw/arm/olimex-stm32-h405.c |  2 +-
 hw/arm/stellaris.c         | 23 ++++++++++++-----------
 hw/arm/stm32vldiscovery.c  |  2 +-
 13 files changed, 32 insertions(+), 31 deletions(-)
Signature · 1 line
2.47.1