Skip to content

target/arm: Housekeeping around NVIC

Philippe Mathieu-Daudé qemu-arm qemu-devel 2 versions Applied

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

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest11 patches 7 repliesApplied
  2. v19 patches 10 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/11hw/intc/armv7m_nvic: Use OBJECT_DECLARE_SIMPLE_TYPE() macroinclude/hw/intc/armv7m_nvic.h+1 -41 reply
2/11target/arm: Simplify arm_v7m_mmu_idx_for_secstate() for user emulationtarget/arm/m_helper.c+8 -31 reply
3/11target/arm: Reduce arm_v7m_mmu_idx_[all/for_secstate_and_priv]() scopetarget/arm/internals.h target/arm/m_helper.c+37 -511 reply
4/11target/arm: Constify ID_PFR1 on user emulationtarget/arm/helper.c+10 -20 replies
5/11target/arm: Convert CPUARMState::eabi to booleanlinux-user/arm/cpu_loop.c linux-user/user-internals.h target/arm/cpu.h+4 -41 reply
6/11target/arm: Avoid resetting CPUARMState::eabi fieldtarget/arm/cpu.h+4 -50 replies
7/11target/arm: Restrict CPUARMState::gicv3state to sysemutarget/arm/cpu.h+2 -10 replies
8/11target/arm: Restrict CPUARMState::arm_boot_info to sysemutarget/arm/cpu.h+1 -10 replies
9/11target/arm: Restrict CPUARMState::nvic to sysemutarget/arm/cpu.h+1 -11 reply
10/11target/arm: Store CPUARMState::nvic as NVICState*hw/intc/armv7m_nvic.c target/arm/cpu.c target/arm/cpu.h +1 more+39 -481 reply
11/11target/arm: Declare CPU <-> NVIC helpers in 'hw/intc/armv7m_nvic.h'include/hw/intc/armv7m_nvic.h target/arm/cpu.c target/arm/cpu.h +2 more+132 -1240 replies

Reviews trailers per patch

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

PatchRichard Henderson
1/11R-b
2/11R-b
3/11R-b
4/11R-b
5/11R-b
6/11R-b
7/11R-b
8/11R-b
9/11R-b
10/11R-b
11/11R-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 [PATCH v2 00/11] target/arm: Housekeeping around NVIC

Missing review: 1-3, 5, 9-10

Few cleanups while using link properties between CPU/NVIC:
- Simplify ID_PFR1 on useremu
- Move NVIC helpers to "hw/intc/armv7m_nvic.h"

Since v1: addressed Richard's reviews
- Do not restrict v7-M MMU helpers to TCG sysemu since they can be used for user-emu. Hardcode ARMMMUIdx_MUser
- Convert CPUARMState::eabi to boolean
- Split 'Restrict nvic to sysemu and store as NVICState' in 3 patches
- Dropped following (RFC) patches:
- neg_prio_requested / unrealized property problem
- use object_property_add_const_link()

Philippe Mathieu-Daudé (11):
hw/intc/armv7m_nvic: Use OBJECT_DECLARE_SIMPLE_TYPE() macro target/arm: Simplify arm_v7m_mmu_idx_for_secstate() for user emulation target/arm: Reduce arm_v7m_mmu_idx_[all/for_secstate_and_priv]() scope target/arm: Constify ID_PFR1 on user emulation
target/arm: Convert CPUARMState::eabi to boolean target/arm: Avoid resetting CPUARMState::eabi field target/arm: Restrict CPUARMState::gicv3state to sysemu target/arm: Restrict CPUARMState::arm_boot_info to sysemu target/arm: Restrict CPUARMState::nvic to sysemu target/arm: Store CPUARMState::nvic as NVICState* target/arm: Declare CPU <-> NVIC helpers in 'hw/intc/armv7m_nvic.h'

 hw/intc/armv7m_nvic.c         |  38 ++++------
 include/hw/intc/armv7m_nvic.h | 128 ++++++++++++++++++++++++++++++-
 linux-user/arm/cpu_loop.c     |   4 +-
 linux-user/user-internals.h   |   2 +-
 target/arm/cpu.c              |   5 +-
 target/arm/cpu.h              | 137 ++--------------------------------
 target/arm/cpu_tcg.c          |   3 +
 target/arm/helper.c           |  12 ++-
 target/arm/internals.h        |  14 ----
 target/arm/m_helper.c         |  86 +++++++++++----------
 10 files changed, 212 insertions(+), 217 deletions(-)
Signature · 1 line
2.38.1