[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 04/10] target/microblaze: Set disassemble_info::endian value in d
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 04/10] target/microblaze: Set disassemble_info::endian value in disas_set_info |
Date: |
Mon, 27 Jan 2025 12:54:20 +0100 |
Have the CPUClass::disas_set_info() callback set the
disassemble_info::endian field.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
target/microblaze/cpu.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/target/microblaze/cpu.c b/target/microblaze/cpu.c
index 13d194cef88..7603d2e8f73 100644
--- a/target/microblaze/cpu.c
+++ b/target/microblaze/cpu.c
@@ -224,6 +224,11 @@ static void mb_disas_set_info(CPUState *cpu,
disassemble_info *info)
{
info->mach = bfd_arch_microblaze;
info->print_insn = print_insn_microblaze;
+#if TARGET_BIG_ENDIAN
+ info->endian = BFD_ENDIAN_BIG;
+#else
+ info->endian = BFD_ENDIAN_LITTLE;
+#endif
}
static void mb_cpu_realizefn(DeviceState *dev, Error **errp)
--
2.47.1
- [PATCH 00/10] disas: Have CPUClass::disas_set_info() callback set the endianness, Philippe Mathieu-Daudé, 2025/01/27
- [PATCH 01/10] target: Set disassemble_info::endian value for little-endian targets, Philippe Mathieu-Daudé, 2025/01/27
- [PATCH 02/10] target: Set disassemble_info::endian value for big-endian targets, Philippe Mathieu-Daudé, 2025/01/27
- [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é <=
- [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é, 2025/01/27
- [PATCH 09/10] target/xtensa: Set disassemble_info::endian value in disas_set_info(), Philippe Mathieu-Daudé, 2025/01/27