qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH 10/10] disas: Remove target_words_bigendian() call in initial


From: Thomas Huth
Subject: Re: [PATCH 10/10] disas: Remove target_words_bigendian() call in initialize_debug_target()
Date: Mon, 27 Jan 2025 15:07:27 +0100
User-agent: Mozilla Thunderbird

On 27/01/2025 12.54, Philippe Mathieu-Daudé wrote:
All CPUClass implementations must implement disas_set_info()
which sets the disassemble_info::endian value.

Ensure that by:

1/ assert disas_set_info() handler is not NULL
2/ set %endian to BFD_ENDIAN_UNKNOWN before calling the
    CPUClass::disas_set_info() handler, then assert %endian
    is not BFD_ENDIAN_UNKNOWN after the call.

This allows removing the target_words_bigendian() call in disas/.

Suggested-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
  disas/disas-common.c | 13 ++++---------
  1 file changed, 4 insertions(+), 9 deletions(-)

Reviewed-by: Thomas Huth <thuth@redhat.com>




reply via email to

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