aboutsummaryrefslogtreecommitdiff
path: root/sim/common/sim-endian.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2016-01-03 00:36:13 -0500
committerMike Frysinger <vapier@gentoo.org>2016-01-03 00:52:51 -0500
commit0cb8d8513cf44a102953ff5cf93e9dd399f42e9a (patch)
tree670e19c289dea5ba0a821d97709073078fc24e6d /sim/common/sim-endian.c
parent1ac72f0659d64d6a14da862242db0d841d2878d0 (diff)
downloadgdb-0cb8d8513cf44a102953ff5cf93e9dd399f42e9a.zip
gdb-0cb8d8513cf44a102953ff5cf93e9dd399f42e9a.tar.gz
gdb-0cb8d8513cf44a102953ff5cf93e9dd399f42e9a.tar.bz2
sim: drop host endian configure option
The --enable-sim-hostendian flag was purely so people had an escape route for when cross-compiling. This is because historically, AC_C_BIGENDIAN did not work in those cases. That was fixed a while ago though, so we can require that macro everywhere now and simplify a good bit of code.
Diffstat (limited to 'sim/common/sim-endian.c')
-rw-r--r--sim/common/sim-endian.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sim/common/sim-endian.c b/sim/common/sim-endian.c
index e8ef534..884b8b7 100644
--- a/sim/common/sim-endian.c
+++ b/sim/common/sim-endian.c
@@ -31,7 +31,7 @@
#define _SWAP_1(SET,RAW) SET (RAW)
#endif
-#if !defined(_SWAP_2) && (WITH_HOST_BYTE_ORDER == BFD_ENDIAN_LITTLE) && defined(htons)
+#if !defined(_SWAP_2) && (HOST_BYTE_ORDER == BFD_ENDIAN_LITTLE) && defined(htons)
#define _SWAP_2(SET,RAW) SET htons (RAW)
#endif
@@ -39,7 +39,7 @@
#define _SWAP_2(SET,RAW) SET (((RAW) >> 8) | ((RAW) << 8))
#endif
-#if !defined(_SWAP_4) && (WITH_HOST_BYTE_ORDER == BFD_ENDIAN_LITTLE) && defined(htonl)
+#if !defined(_SWAP_4) && (HOST_BYTE_ORDER == BFD_ENDIAN_LITTLE) && defined(htonl)
#define _SWAP_4(SET,RAW) SET htonl (RAW)
#endif
@@ -93,7 +93,7 @@ INLINE_SIM_ENDIAN\
(unsigned_8)
sim_endian_split_16 (unsigned_16 word, int w)
{
- if (CURRENT_HOST_BYTE_ORDER == BFD_ENDIAN_LITTLE)
+ if (HOST_BYTE_ORDER == BFD_ENDIAN_LITTLE)
{
return word.a[1 - w];
}
@@ -110,7 +110,7 @@ sim_endian_join_16 (unsigned_8 h, unsigned_8 l)
{
unsigned_16 word;
- if (CURRENT_HOST_BYTE_ORDER == BFD_ENDIAN_LITTLE)
+ if (HOST_BYTE_ORDER == BFD_ENDIAN_LITTLE)
{
word.a[0] = l;
word.a[1] = h;