mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
target: Set disassemble_info::endian value for big-endian targets
Have the CPUClass::disas_set_info() callback set the disassemble_info::endian field for big-endian targets. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20250210212931.62401-3-philmd@linaro.org>
This commit is contained in:
parent
b8b37affc7
commit
2136f7f1f9
5 changed files with 5 additions and 0 deletions
|
@ -150,6 +150,7 @@ static int hppa_cpu_mmu_index(CPUState *cs, bool ifetch)
|
|||
static void hppa_cpu_disas_set_info(CPUState *cs, disassemble_info *info)
|
||||
{
|
||||
info->mach = bfd_mach_hppa20;
|
||||
info->endian = BFD_ENDIAN_BIG;
|
||||
info->print_insn = print_insn_hppa;
|
||||
}
|
||||
|
||||
|
|
|
@ -157,6 +157,7 @@ static void m68k_cpu_reset_hold(Object *obj, ResetType type)
|
|||
static void m68k_cpu_disas_set_info(CPUState *s, disassemble_info *info)
|
||||
{
|
||||
info->print_insn = print_insn_m68k;
|
||||
info->endian = BFD_ENDIAN_BIG;
|
||||
info->mach = 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -83,6 +83,7 @@ static int openrisc_cpu_mmu_index(CPUState *cs, bool ifetch)
|
|||
|
||||
static void openrisc_disas_set_info(CPUState *cpu, disassemble_info *info)
|
||||
{
|
||||
info->endian = BFD_ENDIAN_BIG;
|
||||
info->print_insn = print_insn_or1k;
|
||||
}
|
||||
|
||||
|
|
|
@ -243,6 +243,7 @@ static void s390_cpu_disas_set_info(CPUState *cpu, disassemble_info *info)
|
|||
{
|
||||
info->mach = bfd_mach_s390_64;
|
||||
info->cap_arch = CS_ARCH_SYSZ;
|
||||
info->endian = BFD_ENDIAN_BIG;
|
||||
info->cap_insn_unit = 2;
|
||||
info->cap_insn_split = 6;
|
||||
}
|
||||
|
|
|
@ -106,6 +106,7 @@ static bool sparc_cpu_exec_interrupt(CPUState *cs, int interrupt_request)
|
|||
static void cpu_sparc_disas_set_info(CPUState *cpu, disassemble_info *info)
|
||||
{
|
||||
info->print_insn = print_insn_sparc;
|
||||
info->endian = BFD_ENDIAN_BIG;
|
||||
#ifdef TARGET_SPARC64
|
||||
info->mach = bfd_mach_sparc_v9b;
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue