qemu-arm
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 06/10] target/ppc: Set disassemble_info::endian value in d


From: Richard Henderson
Subject: Re: [PATCH v2 06/10] target/ppc: Set disassemble_info::endian value in disas_set_info()
Date: Mon, 10 Feb 2025 14:12:17 -0800
User-agent: Mozilla Thunderbird

On 2/10/25 13:29, Philippe Mathieu-Daudé wrote:
Have the CPUClass::disas_set_info() callback always set\
the disassemble_info::endian field.

Reviewed-by: Thomas Huth <thuth@redhat.com>
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 25e835d65e7..e816d30114b 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) {

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]