diff options
| author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-01-26 14:37:18 +0100 |
|---|---|---|
| committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-03-06 15:46:18 +0100 |
| commit | 2136f7f1f95b26129922d05d233b2056b8cbff5c (patch) | |
| tree | 2d77885e68896ecd4d5e7cea6dbdb571c6193106 /target/sparc | |
| parent | b8b37affc74e24f1c11f7dfbba416965b805e123 (diff) | |
| download | focaccia-qemu-2136f7f1f95b26129922d05d233b2056b8cbff5c.tar.gz focaccia-qemu-2136f7f1f95b26129922d05d233b2056b8cbff5c.zip | |
target: Set disassemble_info::endian value for big-endian targets
Have the CPUClass::disas_set_info() callback set the disassemble_info::endian field for big-endian targets. 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-3-philmd@linaro.org>
Diffstat (limited to 'target/sparc')
| -rw-r--r-- | target/sparc/cpu.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/target/sparc/cpu.c b/target/sparc/cpu.c index e3b4613717..9fd222e4c8 100644 --- a/target/sparc/cpu.c +++ b/target/sparc/cpu.c @@ -106,6 +106,7 @@ static bool sparc_cpu_exec_interrupt(CPUState *cs, int interrupt_request) static void cpu_sparc_disas_set_info(CPUState *cpu, disassemble_info *info) { info->print_insn = print_insn_sparc; + info->endian = BFD_ENDIAN_BIG; #ifdef TARGET_SPARC64 info->mach = bfd_mach_sparc_v9b; #endif |