Skip to content

disas: Have disas_set_info() take a const CPUState

Philippe Mathieu-Daudé qemu-arm qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7target/arm: Have arm_feature() take a const @env argumenttarget/arm/cpu.h+1 -10 replies
2/7target/arm: Have cpu_isar_feature() use a const ARMCPU objecttarget/arm/cpu-features.h+1 -10 replies
3/7target/arm: Have is_64() take a const @env argumenttarget/arm/cpu.h+1 -10 replies
4/7target/arm: Have arm_sctlr_b() take a const @env argumenttarget/arm/cpu.h+1 -10 replies
5/7disas/riscv: Make rv_decode::cfg constdisas/riscv.c disas/riscv.h+4 -30 replies
6/7disas: Make disassemble_info::target_info field constinclude/disas/dis-asm.h+1 -10 replies
7/7disas: Have disas_set_info() take a const CPUStateinclude/hw/core/cpu.h target/alpha/cpu.c target/arm/cpu.c +16 more+38 -271 reply

Reviews trailers per patch

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

PatchRichard HendersonThomas Huth
SeriesR-b
1/7
2/7
3/7
4/7
5/7
6/7
7/7R-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/7] disas: Have disas_set_info() take a const CPUState

Have the CPUClass::disas_set_info() handler take a const CPUState to be sure it is not modified. In order to do that, first constify few callees (ARM & RISCV).

Philippe Mathieu-Daudé (7):
target/arm: Have arm_feature() take a const @env argument target/arm: Have cpu_isar_feature() use a const ARMCPU object target/arm: Have is_64() take a const @env argument target/arm: Have arm_sctlr_b() take a const @env argument disas/riscv: Make rv_decode::cfg const
disas: Make disassemble_info::target_info field const
disas: Have disas_set_info() take a const CPUState

 disas/riscv.h             | 2 +-
 include/disas/dis-asm.h   | 2 +-
 include/hw/core/cpu.h     | 2 +-
 target/arm/cpu-features.h | 2 +-
 target/arm/cpu.h          | 6 +++---
 disas/riscv.c             | 5 +++--
 target/alpha/cpu.c        | 3 ++-
 target/arm/cpu.c          | 6 +++---
 target/avr/cpu.c          | 2 +-
 target/hexagon/cpu.c      | 3 ++-
 target/hppa/cpu.c         | 2 +-
 target/i386/cpu.c         | 6 +++---
 target/loongarch/cpu.c    | 3 ++-
 target/m68k/cpu.c         | 2 +-
 target/microblaze/cpu.c   | 2 +-
 target/mips/cpu.c         | 7 +++++--
 target/openrisc/cpu.c     | 2 +-
 target/ppc/cpu_init.c     | 5 +++--
 target/riscv/cpu.c        | 7 ++++---
 target/rx/cpu.c           | 2 +-
 target/s390x/cpu.c        | 2 +-
 target/sh4/cpu.c          | 3 ++-
 target/sparc/cpu.c        | 3 ++-
 target/xtensa/cpu.c       | 3 ++-
 24 files changed, 47 insertions(+), 35 deletions(-)
Signature · 1 line
2.52.0