qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/8] hw/core/cpu: Expose cpu_is_big_endian() method
@ 2024-10-04 16:21 Philippe Mathieu-Daudé
  2024-10-04 16:21 ` [PATCH 1/8] exec/tswap: Massage target_needs_bswap() definition Philippe Mathieu-Daudé
                   ` (7 more replies)
  0 siblings, 8 replies; 12+ messages in thread
From: Philippe Mathieu-Daudé @ 2024-10-04 16:21 UTC (permalink / raw)
  To: qemu-devel
  Cc: Aurelien Jarno, Eduardo Habkost, Yanan Wang, Edgar E. Iglesias,
	qemu-ppc, Marcel Apfelbaum, Aleksandar Rikalo,
	Daniel Henrique Barboza, Philippe Mathieu-Daudé,
	Nicholas Piggin, qemu-arm, Zhao Liu, Peter Maydell, Jiaxun Yang

Introduce CPUClass::is_big_endian() handler and expose
the cpu_is_big_endian() method. This will be useful later
when endianness will be propagated in the slow paths,
allowing removal of various TARGET_BIG_ENDIAN uses.

Philippe Mathieu-Daudé (8):
  exec/tswap: Massage target_needs_bswap() definition
  hw/core/cpu: Introduce CPUClass::is_big_endian() handler
  target/arm: Implement CPUClass::is_big_endian
  target/microblaze: Implement CPUClass::is_big_endian
  target/mips: Declare mips_env_is_bigendian() in 'internal.h'
  target/mips: Implement CPUClass::is_big_endian
  target/ppc: Register CPUClass::is_big_endian
  hw/core/cpu: Expose cpu_is_big_endian() method

 include/exec/tswap.h          |  2 +-
 include/hw/core/cpu.h         | 11 ++++++++++-
 target/mips/internal.h        |  5 +++++
 hw/core/cpu-common.c          | 14 ++++++++++++++
 target/arm/cpu.c              |  6 ++++++
 target/microblaze/cpu.c       |  8 ++++++++
 target/mips/cpu.c             |  6 ++++++
 target/mips/tcg/ldst_helper.c | 15 +++++----------
 target/ppc/cpu_init.c         |  5 +++--
 9 files changed, 58 insertions(+), 14 deletions(-)

-- 
2.45.2



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

end of thread, other threads:[~2024-10-04 17:02 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-04 16:21 [PATCH 0/8] hw/core/cpu: Expose cpu_is_big_endian() method Philippe Mathieu-Daudé
2024-10-04 16:21 ` [PATCH 1/8] exec/tswap: Massage target_needs_bswap() definition Philippe Mathieu-Daudé
2024-10-04 16:21 ` [PATCH 2/8] hw/core/cpu: Introduce CPUClass::is_big_endian() handler Philippe Mathieu-Daudé
2024-10-04 16:41   ` Peter Maydell
2024-10-04 16:53     ` Philippe Mathieu-Daudé
2024-10-04 17:01       ` Peter Maydell
2024-10-04 16:21 ` [PATCH 3/8] target/arm: Implement CPUClass::is_big_endian Philippe Mathieu-Daudé
2024-10-04 16:21 ` [PATCH 4/8] target/microblaze: " Philippe Mathieu-Daudé
2024-10-04 16:21 ` [PATCH 5/8] target/mips: Declare mips_env_is_bigendian() in 'internal.h' Philippe Mathieu-Daudé
2024-10-04 16:21 ` [PATCH 6/8] target/mips: Implement CPUClass::is_big_endian Philippe Mathieu-Daudé
2024-10-04 16:21 ` [PATCH 7/8] target/ppc: Register CPUClass::is_big_endian Philippe Mathieu-Daudé
2024-10-04 16:21 ` [PATCH 8/8] hw/core/cpu: Expose cpu_is_big_endian() method 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).