target/sh4: Set disassemble_info::endian value in disas_set_info()
Have the CPUClass::disas_set_info() callback set the disassemble_info::endian field. 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-9-philmd@linaro.org>
This commit is contained in:
parent
0a8bfcbe7c
commit
35e9b36d6e
@ -143,6 +143,8 @@ static void superh_cpu_reset_hold(Object *obj, ResetType type)
|
|||||||
|
|
||||||
static void superh_cpu_disas_set_info(CPUState *cpu, disassemble_info *info)
|
static void superh_cpu_disas_set_info(CPUState *cpu, disassemble_info *info)
|
||||||
{
|
{
|
||||||
|
info->endian = TARGET_BIG_ENDIAN ? BFD_ENDIAN_BIG
|
||||||
|
: BFD_ENDIAN_LITTLE;
|
||||||
info->mach = bfd_mach_sh4;
|
info->mach = bfd_mach_sh4;
|
||||||
info->print_insn = print_insn_sh;
|
info->print_insn = print_insn_sh;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user