[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 0/6] target: Use env_archcpu() instead of ARCH_CPU(env_cpu(env))
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 0/6] target: Use env_archcpu() instead of ARCH_CPU(env_cpu(env)) |
Date: |
Mon, 9 Oct 2023 13:02:33 +0200 |
When we have a CPUArchState* pointer we can directly get the
corresponding ArchCPU* pointer with env_archcpu(). No need to
use QOM cast which is slower due when building with
--enable-qom-cast-debug.
This series replace ARCH_CPU(env_cpu(env)) by env_archcpu(env)
when possible.
Philippe Mathieu-Daudé (6):
target/ppc: Use env_archcpu() in helper_book3s_msgsndp()
target/riscv: Use env_archcpu() in [check_]nanbox()
target/s390x: Use env_archcpu() in handle_diag_308()
target/xtensa: Use env_archcpu() in update_c[compare|count]()
target/i386/hvf: Use x86_cpu in simulate_[rdmsr|wrmsr]()
target/i386: Use env_archcpu() in simulate_[rdmsr/wrmsr]()
target/i386/hvf/x86_emu.h | 4 ++--
target/riscv/internals.h | 8 ++++----
target/i386/hvf/hvf.c | 4 ++--
target/i386/hvf/x86_emu.c | 25 ++++++++++++-------------
target/ppc/excp_helper.c | 2 +-
target/s390x/diag.c | 2 +-
target/xtensa/op_helper.c | 4 ++--
7 files changed, 24 insertions(+), 25 deletions(-)
--
2.41.0
- [PATCH 0/6] target: Use env_archcpu() instead of ARCH_CPU(env_cpu(env)),
Philippe Mathieu-Daudé <=