mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-28 10:00:51 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user