Skip to content

target/arm: Flag PMCNTENCLR with ARM_CP_NO_RAW

Akihiko Odaki qemu-arm qemu-devel 1 version In review

Get series with b4
b4 am [email protected] change-id 20250314-raw-198885f67b73

Versions newest first

  1. v1 Latest4 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4target/arm: Explicitly set ARM_CP_NO_GDBhw/intc/arm_gicv3_cpuif.c hw/intc/arm_gicv3_kvm.c target/arm/debug_helper.c +2 more+321 -2580 replies
2/4target/arm: Do not imply ARM_CP_NO_GDBtarget/arm/cpregs.h target/arm/gdbstub.c+5 -50 replies
3/4target/arm: Expose PMINTENCLR to GDBtarget/arm/helper.c+2 -20 replies
4/4target/arm: Flag PMCNTENCLR with ARM_CP_NO_RAWtarget/arm/helper.c+12 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] target/arm: Flag PMCNTENCLR with ARM_CP_NO_RAW

Supersedes: <[email protected]> ("[PATCH v2] target/arm: Define raw write for PMU CLR registers")

A normal write to PMCNTENCLR clears written bits so it is not appropriate for writing a raw value. This kind of situation is usually handled by setting a raw write function, but flag the register with ARM_CP_NO_RAW instead to workaround a problem with KVM.

KVM also has the same problem with PMINTENSET so add a comment to note that. This register is already flagged with ARM_CP_NO_RAW.

---
Akihiko Odaki (4):
target/arm: Explicitly set ARM_CP_NO_GDB target/arm: Do not imply ARM_CP_NO_GDB target/arm: Expose PMINTENCLR to GDB target/arm: Flag PMCNTENCLR with ARM_CP_NO_RAW

 target/arm/cpregs.h        |   8 +-
 hw/intc/arm_gicv3_cpuif.c  | 100 +++++++++---------
 hw/intc/arm_gicv3_kvm.c    |   2 +-
 target/arm/debug_helper.c  |   2 +-
 target/arm/gdbstub.c       |   2 +-
 target/arm/helper.c        | 229 +++++++++++++++++++++++-----------------
 target/arm/tcg/tlb-insns.c | 256 +++++++++++++++++++++++++--------------------
 7 files changed, 336 insertions(+), 263 deletions(-)

---
base-commit: 825b96dbcee23d134b691fc75618b59c5f53da32
change-id: 20250314-raw-198885f67b73

Best regards,

Signature · 1 line
Akihiko Odaki <[email protected]>