qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/6] target: Use env_archcpu() instead of ARCH_CPU(env_cpu(env))
@ 2023-10-09 11:02 Philippe Mathieu-Daudé
  2023-10-09 11:02 ` [PATCH 1/6] target/ppc: Use env_archcpu() in helper_book3s_msgsndp() Philippe Mathieu-Daudé
                   ` (7 more replies)
  0 siblings, 8 replies; 27+ messages in thread
From: Philippe Mathieu-Daudé @ 2023-10-09 11:02 UTC (permalink / raw)
  To: qemu-devel
  Cc: David Hildenbrand, Weiwei Li, qemu-s390x, Ilya Leoshkevich,
	Bin Meng, Alistair Francis, Cameron Esfahani, qemu-ppc,
	Daniel Henrique Barboza, qemu-riscv, Max Filippov,
	Daniel Henrique Barboza, Palmer Dabbelt, Cédric Le Goater,
	Liu Zhiwei, Richard Henderson, Thomas Huth, Roman Bolshakov,
	Nicholas Piggin, Philippe Mathieu-Daudé

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



^ permalink raw reply	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2023-10-20 11:12 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-09 11:02 [PATCH 0/6] target: Use env_archcpu() instead of ARCH_CPU(env_cpu(env)) Philippe Mathieu-Daudé
2023-10-09 11:02 ` [PATCH 1/6] target/ppc: Use env_archcpu() in helper_book3s_msgsndp() Philippe Mathieu-Daudé
2023-10-09 11:45   ` Daniel Henrique Barboza
2023-10-11  1:20   ` Alistair Francis
2023-10-09 11:02 ` [PATCH 2/6] target/riscv: Use env_archcpu() in [check_]nanbox() Philippe Mathieu-Daudé
2023-10-09 11:45   ` Daniel Henrique Barboza
2023-10-09 12:42   ` LIU Zhiwei
2023-10-10 17:04     ` Richard Henderson
2023-10-11  3:25       ` LIU Zhiwei
2023-10-11  5:31         ` Philippe Mathieu-Daudé
2023-10-12  5:59           ` LIU Zhiwei
2023-10-12 16:06             ` Richard Henderson
2023-10-13  8:48               ` LIU Zhiwei
2023-10-09 12:53   ` Richard W.M. Jones
2023-10-11  1:11   ` Alistair Francis
2023-10-09 11:02 ` [PATCH 3/6] target/s390x: Use env_archcpu() in handle_diag_308() Philippe Mathieu-Daudé
2023-10-11  1:17   ` Alistair Francis
2023-10-09 11:02 ` [PATCH 4/6] target/xtensa: Use env_archcpu() in update_c[compare|count]() Philippe Mathieu-Daudé
2023-10-11  1:17   ` Alistair Francis
2023-10-09 11:02 ` [PATCH 5/6] target/i386/hvf: Use x86_cpu in simulate_[rdmsr|wrmsr]() Philippe Mathieu-Daudé
2023-10-09 22:11   ` Roman Bolshakov
2023-10-20  8:44   ` Zhao Liu
2023-10-09 11:02 ` [PATCH 6/6] target/i386: Use env_archcpu() in simulate_[rdmsr/wrmsr]() Philippe Mathieu-Daudé
2023-10-09 22:41   ` Roman Bolshakov
2023-10-20  9:14   ` Zhao Liu
2023-10-10 17:06 ` [PATCH 0/6] target: Use env_archcpu() instead of ARCH_CPU(env_cpu(env)) Richard Henderson
2023-10-20 11:12 ` Philippe Mathieu-Daudé

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).