mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33: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
|
@ -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