|
From: | Richard Henderson |
Subject: | Re: [PATCH v2 10/10] disas: Remove target_words_bigendian() call in initialize_debug_target() |
Date: | Mon, 10 Feb 2025 14:16:56 -0800 |
User-agent: | Mozilla Thunderbird |
On 2/10/25 13:29, 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
Can we do that earlier than here?
@@ -61,15 +60,11 @@ void disas_initialize_debug_target(CPUDebug *s, CPUState *cpu)s->cpu = cpu;s->info.print_address_func = print_address; - if (target_words_bigendian()) { - s->info.endian = BFD_ENDIAN_BIG; - } else { - s->info.endian = BFD_ENDIAN_LITTLE; - } + s->info.endian = BFD_ENDIAN_UNKNOWN;
Extra space.
+ g_assert(s->info.endian != BFD_ENDIAN_UNKNOWN);
And another one. With the spacing fixed, Reviewed-by: Richard Henderson <richard.henderson@linaro.org> r~
[Prev in Thread] | Current Thread | [Next in Thread] |