sim: convert to bfd_endian

Rather than re-invent endian defines, as well as maintain our own list
of OS & arch-specific includes, punt all that logic in favor of the bfd
ones already set up and maintained elsewhere.  We already rely on the
bfd library, so leveraging the endian aspect should be fine.
This commit is contained in:
Mike Frysinger
2016-01-02 17:46:16 -05:00
parent 987f873905
commit 1ac72f0659
90 changed files with 712 additions and 699 deletions

View File

@@ -116,10 +116,10 @@ struct loop_bounds { unsigned char *start, *end; };
/* These variables are at file scope so that functions other than
sim_resume can use the fetch/store macros */
#define target_little_endian (CURRENT_TARGET_BYTE_ORDER == LITTLE_ENDIAN)
#define target_little_endian (CURRENT_TARGET_BYTE_ORDER == BFD_ENDIAN_LITTLE)
static int global_endianw, endianb;
static int target_dsp;
#define host_little_endian (CURRENT_HOST_BYTE_ORDER == LITTLE_ENDIAN)
#define host_little_endian (CURRENT_HOST_BYTE_ORDER == BFD_ENDIAN_LITTLE)
static int maskw = 0;
static int maskl = 0;