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.
This commit is contained in:
Mike Frysinger
2016-01-03 00:36:13 -05:00
parent 1ac72f0659
commit 0cb8d8513c
96 changed files with 6648 additions and 5871 deletions

View File

@ -136,7 +136,7 @@ conv_endian (unsigned int tvalue)
unsigned int hvalue;
unsigned int t1, t2, t3, t4;
if (CURRENT_HOST_BYTE_ORDER == BFD_ENDIAN_LITTLE)
if (HOST_BYTE_ORDER == BFD_ENDIAN_LITTLE)
{
t1 = tvalue & 0xff000000;
t2 = tvalue & 0x00ff0000;
@ -160,7 +160,7 @@ conv_endian16 (unsigned short tvalue)
unsigned short hvalue;
unsigned short t1, t2;
if (CURRENT_HOST_BYTE_ORDER == BFD_ENDIAN_LITTLE)
if (HOST_BYTE_ORDER == BFD_ENDIAN_LITTLE)
{
t1 = tvalue & 0xff00;
t2 = tvalue & 0x00ff;