mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
target: Set disassemble_info::endian value for little-endian targets
Have the CPUClass::disas_set_info() callback set the disassemble_info::endian field for little-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-2-philmd@linaro.org>
This commit is contained in:
parent
96adf9b404
commit
b8b37affc7
6 changed files with 6 additions and 0 deletions
|
@ -102,6 +102,7 @@ static void avr_cpu_reset_hold(Object *obj, ResetType type)
|
|||
|
||||
static void avr_cpu_disas_set_info(CPUState *cpu, disassemble_info *info)
|
||||
{
|
||||
info->endian = BFD_ENDIAN_LITTLE;
|
||||
info->mach = bfd_arch_avr;
|
||||
info->print_insn = avr_print_insn;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue