[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 08/10] target/sh4: Set disassemble_info::endian value in disas_se
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 08/10] target/sh4: Set disassemble_info::endian value in disas_set_info() |
Date: |
Mon, 27 Jan 2025 12:54:24 +0100 |
Have the CPUClass::disas_set_info() callback set the
disassemble_info::endian field.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
target/sh4/cpu.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/target/sh4/cpu.c b/target/sh4/cpu.c
index e3c2aea1a64..9d3e6cb2fd7 100644
--- a/target/sh4/cpu.c
+++ b/target/sh4/cpu.c
@@ -134,6 +134,11 @@ static void superh_cpu_reset_hold(Object *obj, ResetType
type)
static void superh_cpu_disas_set_info(CPUState *cpu, disassemble_info *info)
{
+#if TARGET_BIG_ENDIAN
+ info->endian = BFD_ENDIAN_BIG;
+#else
+ info->endian = BFD_ENDIAN_LITTLE;
+#endif
info->mach = bfd_mach_sh4;
info->print_insn = print_insn_sh;
}
--
2.47.1
- Re: [PATCH 02/10] target: Set disassemble_info::endian value for big-endian targets, (continued)
- [PATCH 03/10] target/arm: Set disassemble_info::endian value in disas_set_info(), Philippe Mathieu-Daudé, 2025/01/27
- [PATCH 04/10] target/microblaze: Set disassemble_info::endian value in disas_set_info, Philippe Mathieu-Daudé, 2025/01/27
- [PATCH 05/10] target/mips: Set disassemble_info::endian value in disas_set_info(), Philippe Mathieu-Daudé, 2025/01/27
- [PATCH 06/10] target/ppc: Set disassemble_info::endian value in disas_set_info(), Philippe Mathieu-Daudé, 2025/01/27
- [PATCH 08/10] target/sh4: Set disassemble_info::endian value in disas_set_info(),
Philippe Mathieu-Daudé <=
- [PATCH 09/10] target/xtensa: Set disassemble_info::endian value in disas_set_info(), Philippe Mathieu-Daudé, 2025/01/27
- [PATCH 10/10] disas: Remove target_words_bigendian() call in initialize_debug_target(), Philippe Mathieu-Daudé, 2025/01/27
- [PATCH 07/10] target/riscv: Set disassemble_info::endian value in disas_set_info(), Philippe Mathieu-Daudé, 2025/01/27