Marc-André Lureau e03b56863d Replace config-time define HOST_WORDS_BIGENDIAN
Replace a config-time define with a compile time condition
define (compatible with clang and gcc) that must be declared prior to
its usage. This avoids having a global configure time define, but also
prevents from bad usage, if the config header wasn't included before.

This can help to make some code independent from qemu too.

gcc supports __BYTE_ORDER__ from about 4.6 and clang from 3.2.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
[ For the s390x parts I'm involved in ]
Acked-by: Halil Pasic <pasic@linux.ibm.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20220323155743.1585078-7-marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2022-04-06 10:50:37 +02:00
..
2022-03-22 14:46:11 +04:00
2022-03-04 08:50:41 -10:00
2021-12-21 10:50:22 +04:00
2020-12-10 12:15:18 -05:00
2016-06-07 18:19:23 +03:00
2017-10-16 20:57:13 +03:00
2020-10-15 16:06:27 +02:00
2022-03-15 13:57:44 +08:00
2022-03-22 14:40:51 +04:00
2019-09-11 08:46:17 +02:00
2020-12-10 17:16:44 +01:00
2021-12-21 10:50:22 +04:00
2022-03-22 14:46:11 +04:00
2018-09-26 08:55:54 -07:00
2019-04-18 22:18:59 +02:00
2022-03-04 18:14:40 +01:00
2016-02-23 12:43:05 +00:00
2018-08-24 20:26:37 +02:00
2016-09-15 15:32:22 +03:00
2021-04-01 15:27:44 +04:00