Skip to content

arm: ARM11MPCore+A9MPCore+A15MPCore QOM'ification

Andreas Färber qemu-devel 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest24 patches 4 repliesIn review
  2. v324 patches 5 repliesSuperseded
  3. v216 patches 15 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v1 RFC15 patches8 repliesSuperseded

Changes in v4 from the cover letter

* Rebased; object_initialize() now takes additional size argument.
* Subject prefixes unified.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/24a9mpcore: Split off instance_inithw/cpu/a9mpcore.c+9 -30 replies
2/24arm_gic: Extract headers hw/intc/arm_gic{, _common}.hhw/intc/arm_gic_common.c hw/intc/gic_internal.h include/hw/intc/arm_gic.h +1 more+145 -870 replies
3/24a9mpcore: Embed GICStatehw/cpu/a9mpcore.c+16 -90 replies
4/24a9scu: QOM cleanupshw/misc/a9scu.c+9 -60 replies
5/24a9mpcore: Embed A9SCUStatehw/cpu/a9mpcore.c hw/misc/a9scu.c include/hw/misc/a9scu.h+42 -230 replies
6/24arm_mptimer: Convert to QOM realizehw/timer/arm_mptimer.c+15 -100 replies
7/24a9mpcore: Embed ARMMPTimerStatehw/cpu/a9mpcore.c hw/timer/arm_mptimer.c include/hw/timer/arm_mptimer.h+76 -420 replies
8/24a9mpcore: Convert to QOM realizehw/cpu/a9mpcore.c+26 -100 replies
9/24a9mpcore: Prepare for QOM embeddinghw/cpu/a9mpcore.c include/hw/cpu/a9mpcore.h+38 -230 replies
10/24a15mpcore: Split off instance_inithw/cpu/a15mpcore.c+10 -30 replies
11/24a15mpcore: Embed GICStatehw/cpu/a15mpcore.c+24 -150 replies
12/24a15mpcore: Convert to QOM realizehw/cpu/a15mpcore.c+12 -80 replies
13/24a15mpcore: Prepare for QOM embeddinghw/cpu/a15mpcore.c include/hw/cpu/a15mpcore.h+45 -200 replies
14/24a9scu: Build only oncehw/misc/Makefile.objs+1 -10 replies
15/24arm11mpcore: Fix typo in MemoryRegion namehw/cpu/arm11mpcore.c+1 -10 replies
16/24arm11mpcore: Drop unused fieldshw/cpu/arm11mpcore.c+0 -20 replies
17/24arm11mpcore: Create container MemoryRegion in instance_inithw/cpu/arm11mpcore.c+11 -30 replies
18/24arm11mpcore: Split off SCU devicedefault-configs/arm-softmmu.mak hw/cpu/arm11mpcore.c hw/misc/Makefile.objs +2 more+145 -510 replies
19/24arm11mpcore: Convert ARM11MPCorePriveState to QOM realizehw/cpu/arm11mpcore.c+56 -280 replies
20/24realview_gic: Convert to QOM realizehw/intc/realview_gic.c+35 -160 replies
21/24realview_gic: Prepare for QOM embeddinghw/intc/realview_gic.c include/hw/intc/realview_gic.h+29 -140 replies
22/24arm11mpcore: Convert mpcore_rirq_state to QOM realizehw/cpu/arm11mpcore.c+44 -140 replies
23/24arm11mpcore: Prepare for QOM embeddinghw/cpu/arm11mpcore.c include/hw/cpu/arm11mpcore.h+36 -260 replies
24/24arm11mpcore: Split off RealView MPCorehw/cpu/Makefile.objs hw/cpu/arm11mpcore.c hw/cpu/realview_mpcore.c+140 -1212 replies

Reviews trailers per patch

1 of 24 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchPeter CrosthwaitePeter Maydell
SeriesR-b
1/24
2/24
3/24
4/24R-b
5/24
6/24
7/24
8/24
9/24
10/24
11/24
12/24
13/24
14/24
15/24
16/24
17/24
18/24
19/24
20/24
21/24
22/24
23/24
24/24

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

Read the v4 thread

Cover letter [Qemu-devel] [PATCH v4 00/24] arm: ARM11MPCore+A9MPCore+A15MPCore QOM'ification

From: Andreas Färber <[email protected]>

Hello Peter,

This series fully QOM'ifies A9MPCore so that it can be embedded for Tegra2. It goes on to do the same for A15MPCore, which had previously been taken as template for Cortex-A57 by John Rigby, and since v3 ARM11MPCore.

Separate headers are introduced to only expose device state to whom asks for it.

v4 is a rebase that addresses concerns about potential future GICState size mismatches by asserting in QOM infrastructure.

Regards,
Andreas

v3 -> v4:
* Rebased; object_initialize() now takes additional size argument.
* Subject prefixes unified.

v2 -> v3:
* Split off hw/intc/arm_gic_common.h from new arm_gic.h (PMM).
* Added patches converting arm11mpcore, too.
* Split off arm11scu from arm11mpcore, following a9scu/a9mpcore model.
* Added patch to enforce building a9scu only once.
* Split off RealView MPCore from ARM11 MPCore using a new arm11mpcore.h.

v1 -> v2:
* Renamed MP_TIMER to MPTIMER (Peter C.).
* Don't include gic_internal.h, introduce new arm_gic.h header (PMM).
* a9mpcore: Init only container MemoryRegion in instance_init (Peter C.).
* a9mpcore/a15mpcore: Replaced all qdev_init_nofail()s for error propagation.

Cc Peter Maydell <[email protected]>
Cc Peter Crosthwaite <[email protected]>
Cc Mian M. Hamayun <[email protected]>
Cc Claudio Fontana <[email protected]>

Andreas Färber (24):
a9mpcore: Split off instance_init
arm_gic: Extract headers hw/intc/arm_gic{,_common}.h
a9mpcore: Embed GICState
a9scu: QOM cleanups
a9mpcore: Embed A9SCUState
arm_mptimer: Convert to QOM realize
a9mpcore: Embed ARMMPTimerState
a9mpcore: Convert to QOM realize
a9mpcore: Prepare for QOM embedding
a15mpcore: Split off instance_init
a15mpcore: Embed GICState
a15mpcore: Convert to QOM realize
a15mpcore: Prepare for QOM embedding
a9scu: Build only once
arm11mpcore: Fix typo in MemoryRegion name
arm11mpcore: Drop unused fields
arm11mpcore: Create container MemoryRegion in instance_init
arm11mpcore: Split off SCU device
arm11mpcore: Convert ARM11MPCorePriveState to QOM realize
realview_gic: Convert to QOM realize
realview_gic: Prepare for QOM embedding
arm11mpcore: Convert mpcore_rirq_state to QOM realize
arm11mpcore: Prepare for QOM embedding
arm11mpcore: Split off RealView MPCore

 default-configs/arm-softmmu.mak  |   1 +
 hw/cpu/Makefile.objs             |   1 +
 hw/cpu/a15mpcore.c               |  81 ++++++-------
 hw/cpu/a9mpcore.c                | 120 +++++++++++--------
 hw/cpu/arm11mpcore.c             | 251 ++++++++++-----------------------------
 hw/cpu/realview_mpcore.c         | 139 ++++++++++++++++++++++
 hw/intc/arm_gic_common.c         |  18 +--
 hw/intc/gic_internal.h           |  80 +------------
 hw/intc/realview_gic.c           |  58 +++++----
 hw/misc/Makefile.objs            |   3 +-
 hw/misc/a9scu.c                  |  25 +---
 hw/misc/arm11scu.c               | 100 ++++++++++++++++
 hw/timer/arm_mptimer.c           |  60 +++-------
 include/hw/cpu/a15mpcore.h       |  44 +++++++
 include/hw/cpu/a9mpcore.h        |  37 ++++++
 include/hw/cpu/arm11mpcore.h     |  35 ++++++
 include/hw/intc/arm_gic.h        |  42 +++++++
 include/hw/intc/arm_gic_common.h |  92 ++++++++++++++
 include/hw/intc/realview_gic.h   |  28 +++++
 include/hw/misc/a9scu.h          |  31 +++++
 include/hw/misc/arm11scu.h       |  29 +++++
 include/hw/timer/arm_mptimer.h   |  54 +++++++++
 22 files changed, 879 insertions(+), 450 deletions(-)
 create mode 100644 hw/cpu/realview_mpcore.c
 create mode 100644 hw/misc/arm11scu.c
 create mode 100644 include/hw/cpu/a15mpcore.h
 create mode 100644 include/hw/cpu/a9mpcore.h
 create mode 100644 include/hw/cpu/arm11mpcore.h
 create mode 100644 include/hw/intc/arm_gic.h
 create mode 100644 include/hw/intc/arm_gic_common.h
 create mode 100644 include/hw/intc/realview_gic.h
 create mode 100644 include/hw/misc/a9scu.h
 create mode 100644 include/hw/misc/arm11scu.h
 create mode 100644 include/hw/timer/arm_mptimer.h
Signature · 1 line
1.8.1.4