qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 00/10] disas: Have CPUClass::disas_set_info() callback set the endianness
@ 2025-01-27 11:54 Philippe Mathieu-Daudé
  2025-01-27 11:54 ` [PATCH 01/10] target: Set disassemble_info::endian value for little-endian targets Philippe Mathieu-Daudé
                   ` (9 more replies)
  0 siblings, 10 replies; 23+ messages in thread
From: Philippe Mathieu-Daudé @ 2025-01-27 11:54 UTC (permalink / raw)
  To: qemu-devel
  Cc: qemu-arm, qemu-s390x, Paolo Bonzini, qemu-riscv, Peter Maydell,
	Richard Henderson, Thomas Huth, qemu-ppc,
	Philippe Mathieu-Daudé

Targets are aware of their endianness. No need for a global
target_words_bigendian() call in disas/ where we call the
CPUClass::disas_set_info() handler which already update
disassemble_info fields. Specify the target endianness in
each CPUClass handler.

Philippe Mathieu-Daudé (10):
  target: Set disassemble_info::endian value for little-endian targets
  target: Set disassemble_info::endian value for big-endian targets
  target/arm: Set disassemble_info::endian value in disas_set_info()
  target/microblaze: Set disassemble_info::endian value in
    disas_set_info
  target/mips: Set disassemble_info::endian value in disas_set_info()
  target/ppc: Set disassemble_info::endian value in disas_set_info()
  target/riscv: Set disassemble_info::endian value in disas_set_info()
  target/sh4: Set disassemble_info::endian value in disas_set_info()
  target/xtensa: Set disassemble_info::endian value in disas_set_info()
  disas: Remove target_words_bigendian() call in
    initialize_debug_target()

 disas/disas-common.c    | 13 ++++---------
 target/alpha/cpu.c      |  1 +
 target/arm/cpu.c        |  2 ++
 target/avr/cpu.c        |  1 +
 target/hexagon/cpu.c    |  1 +
 target/hppa/cpu.c       |  1 +
 target/i386/cpu.c       |  1 +
 target/loongarch/cpu.c  |  1 +
 target/m68k/cpu.c       |  1 +
 target/microblaze/cpu.c |  5 +++++
 target/mips/cpu.c       |  3 +++
 target/openrisc/cpu.c   |  1 +
 target/ppc/cpu_init.c   |  2 ++
 target/riscv/cpu.c      |  9 +++++++++
 target/rx/cpu.c         |  1 +
 target/s390x/cpu.c      |  1 +
 target/sh4/cpu.c        |  5 +++++
 target/sparc/cpu.c      |  1 +
 target/tricore/cpu.c    |  6 ++++++
 target/xtensa/cpu.c     |  5 +++++
 20 files changed, 52 insertions(+), 9 deletions(-)

-- 
2.47.1



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

end of thread, other threads:[~2025-02-10 21:25 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-27 11:54 [PATCH 00/10] disas: Have CPUClass::disas_set_info() callback set the endianness Philippe Mathieu-Daudé
2025-01-27 11:54 ` [PATCH 01/10] target: Set disassemble_info::endian value for little-endian targets Philippe Mathieu-Daudé
2025-01-27 13:49   ` Thomas Huth
2025-01-27 11:54 ` [PATCH 02/10] target: Set disassemble_info::endian value for big-endian targets Philippe Mathieu-Daudé
2025-01-27 13:50   ` Thomas Huth
2025-01-27 11:54 ` [PATCH 03/10] target/arm: Set disassemble_info::endian value in disas_set_info() Philippe Mathieu-Daudé
2025-01-27 13:57   ` Thomas Huth
2025-02-10 21:24     ` Philippe Mathieu-Daudé
2025-01-27 11:54 ` [PATCH 04/10] target/microblaze: Set disassemble_info::endian value in disas_set_info Philippe Mathieu-Daudé
2025-01-27 14:03   ` Thomas Huth
2025-01-27 16:24   ` Richard Henderson
2025-01-27 11:54 ` [PATCH 05/10] target/mips: Set disassemble_info::endian value in disas_set_info() Philippe Mathieu-Daudé
2025-01-27 13:58   ` Thomas Huth
2025-01-27 11:54 ` [PATCH 06/10] target/ppc: " Philippe Mathieu-Daudé
2025-01-27 14:03   ` Thomas Huth
2025-01-27 11:54 ` [PATCH 07/10] target/riscv: " Philippe Mathieu-Daudé
2025-01-27 14:04   ` Thomas Huth
2025-01-27 11:54 ` [PATCH 08/10] target/sh4: " Philippe Mathieu-Daudé
2025-01-27 14:05   ` Thomas Huth
2025-01-27 11:54 ` [PATCH 09/10] target/xtensa: " Philippe Mathieu-Daudé
2025-01-27 14:05   ` Thomas Huth
2025-01-27 11:54 ` [PATCH 10/10] disas: Remove target_words_bigendian() call in initialize_debug_target() Philippe Mathieu-Daudé
2025-01-27 14:07   ` Thomas Huth

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).