[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 06/10] target/ppc: Set disassemble_info::endian value in disas_se
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 06/10] target/ppc: Set disassemble_info::endian value in disas_set_info() |
Date: |
Mon, 27 Jan 2025 12:54:22 +0100 |
Have the CPUClass::disas_set_info() callback set the
disassemble_info::endian field.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
target/ppc/cpu_init.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/target/ppc/cpu_init.c b/target/ppc/cpu_init.c
index ed85448bc7d..c3263f26219 100644
--- a/target/ppc/cpu_init.c
+++ b/target/ppc/cpu_init.c
@@ -7398,6 +7398,8 @@ static void ppc_disas_set_info(CPUState *cs,
disassemble_info *info)
if ((env->hflags >> MSR_LE) & 1) {
info->endian = BFD_ENDIAN_LITTLE;
+ } else {
+ info->endian = BFD_ENDIAN_BIG;
}
info->mach = env->bfd_mach;
if (!env->bfd_mach) {
--
2.47.1
- [PATCH 01/10] target: Set disassemble_info::endian value for little-endian targets, (continued)
- [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é, 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é <=
- [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
- [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