diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-01-26 14:35:24 +0100 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-03-06 15:46:18 +0100 |
commit | 059eb605fd67f15c0ca7f07c7a02c319035b095b (patch) | |
tree | 9b0bf30e957f4b238fbdd17d8efe234e1ae2d3c1 | |
parent | 35e9b36d6e724160d8f33ab9b61dd8b660e4df1f (diff) | |
download | qemu-059eb605fd67f15c0ca7f07c7a02c319035b095b.zip qemu-059eb605fd67f15c0ca7f07c7a02c319035b095b.tar.gz qemu-059eb605fd67f15c0ca7f07c7a02c319035b095b.tar.bz2 |
target/xtensa: 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-10-philmd@linaro.org>
-rw-r--r-- | target/xtensa/cpu.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/target/xtensa/cpu.c b/target/xtensa/cpu.c index efbfe73..f9e298a 100644 --- a/target/xtensa/cpu.c +++ b/target/xtensa/cpu.c @@ -159,6 +159,8 @@ static void xtensa_cpu_disas_set_info(CPUState *cs, disassemble_info *info) info->private_data = cpu->env.config->isa; info->print_insn = print_insn_xtensa; + info->endian = TARGET_BIG_ENDIAN ? BFD_ENDIAN_BIG + : BFD_ENDIAN_LITTLE; } static void xtensa_cpu_realizefn(DeviceState *dev, Error **errp) |