mbox series

[PATCH-for-8.0,v2,0/4] target/cpu: System/User cleanups around hwaddr/vaddr

Message ID 20221208153528.27238-1-philmd@linaro.org
Headers show
Series target/cpu: System/User cleanups around hwaddr/vaddr | expand

Message

Philippe Mathieu-Daudé Dec. 8, 2022, 3:35 p.m. UTC
We are not supposed to use the 'hwaddr' type on user emulation.

This series is a preparatory cleanup before few refactors to
isolate further System vs User code.

Since v1:
- only restrict SavedIOTLB in header (Alex)
- convert insert/remove_breakpoint implementations (Peter)

Philippe Mathieu-Daudé (4):
  cputlb: Restrict SavedIOTLB to system emulation
  gdbstub: Use vaddr type for generic insert/remove_breakpoint() API
  target/cpu: Restrict cpu_get_phys_page_debug() handlers to sysemu
  target/sparc/sysemu: Remove pointless CONFIG_USER_ONLY guard

 accel/kvm/kvm-all.c        | 4 ++--
 accel/kvm/kvm-cpus.h       | 4 ++--
 accel/tcg/tcg-accel-ops.c  | 4 ++--
 gdbstub/gdbstub.c          | 1 -
 gdbstub/internals.h        | 6 ++++--
 gdbstub/softmmu.c          | 5 ++---
 gdbstub/user.c             | 5 ++---
 include/hw/core/cpu.h      | 6 ++++--
 include/sysemu/accel-ops.h | 6 +++---
 target/alpha/cpu.h         | 2 +-
 target/cris/cpu.h          | 3 +--
 target/hppa/cpu.h          | 2 +-
 target/m68k/cpu.h          | 2 +-
 target/nios2/cpu.h         | 2 +-
 target/openrisc/cpu.h      | 3 ++-
 target/ppc/cpu.h           | 2 +-
 target/rx/cpu.h            | 2 +-
 target/rx/helper.c         | 4 ++--
 target/sh4/cpu.h           | 2 +-
 target/sparc/cpu.h         | 3 ++-
 target/sparc/mmu_helper.c  | 2 --
 target/xtensa/cpu.h        | 2 +-
 22 files changed, 36 insertions(+), 36 deletions(-)

Comments

Richard Henderson Dec. 8, 2022, 3:53 p.m. UTC | #1
On 12/8/22 09:35, Philippe Mathieu-Daudé wrote:
> Philippe Mathieu-Daudé (4):
>    cputlb: Restrict SavedIOTLB to system emulation
>    gdbstub: Use vaddr type for generic insert/remove_breakpoint() API
>    target/cpu: Restrict cpu_get_phys_page_debug() handlers to sysemu
>    target/sparc/sysemu: Remove pointless CONFIG_USER_ONLY guard

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>


r~