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(-)