mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 14:49:38 +08:00
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:
@ -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;
|
||||
|
Reference in New Issue
Block a user