target/mips: 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-6-philmd@linaro.org>
This commit is contained in:
parent
840e0862c5
commit
7bb1a717cb
@ -428,13 +428,13 @@ static void mips_cpu_reset_hold(Object *obj, ResetType type)
|
|||||||
static void mips_cpu_disas_set_info(CPUState *s, disassemble_info *info)
|
static void mips_cpu_disas_set_info(CPUState *s, disassemble_info *info)
|
||||||
{
|
{
|
||||||
if (!(cpu_env(s)->insn_flags & ISA_NANOMIPS32)) {
|
if (!(cpu_env(s)->insn_flags & ISA_NANOMIPS32)) {
|
||||||
#if TARGET_BIG_ENDIAN
|
info->endian = TARGET_BIG_ENDIAN ? BFD_ENDIAN_BIG
|
||||||
info->print_insn = print_insn_big_mips;
|
: BFD_ENDIAN_LITTLE;
|
||||||
#else
|
info->print_insn = TARGET_BIG_ENDIAN ? print_insn_big_mips
|
||||||
info->print_insn = print_insn_little_mips;
|
: print_insn_little_mips;
|
||||||
#endif
|
|
||||||
} else {
|
} else {
|
||||||
info->print_insn = print_insn_nanomips;
|
info->print_insn = print_insn_nanomips;
|
||||||
|
info->endian = BFD_ENDIAN_LITTLE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user