diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-01-26 14:32:03 +0100 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-03-06 15:46:18 +0100 |
commit | 35e9b36d6e724160d8f33ab9b61dd8b660e4df1f (patch) | |
tree | 09d700f02efeb6442ebe6ce2c0de49cf2bcf7c7f | |
parent | 0a8bfcbe7ca32f160c47faa9d611173b0697a698 (diff) | |
download | qemu-35e9b36d6e724160d8f33ab9b61dd8b660e4df1f.zip qemu-35e9b36d6e724160d8f33ab9b61dd8b660e4df1f.tar.gz qemu-35e9b36d6e724160d8f33ab9b61dd8b660e4df1f.tar.bz2 |
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>
-rw-r--r-- | target/sh4/cpu.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/target/sh4/cpu.c b/target/sh4/cpu.c index 22cdf9b..c2aaa40 100644 --- a/target/sh4/cpu.c +++ b/target/sh4/cpu.c @@ -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) { + info->endian = TARGET_BIG_ENDIAN ? BFD_ENDIAN_BIG + : BFD_ENDIAN_LITTLE; info->mach = bfd_mach_sh4; info->print_insn = print_insn_sh; } |