diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-06-15 20:58:31 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-06-16 01:22:50 -0400 |
commit | 956f0babcd95bc7b6d2d79ea345abdd6f464e65f (patch) | |
tree | 539e8c9e69c946b736856febfc74d4cae38f4e2d /sim/ppc/psim.c | |
parent | 1b828ebe530ef113c9e55fad8f7e472cd36dd078 (diff) | |
download | gdb-956f0babcd95bc7b6d2d79ea345abdd6f464e65f.zip gdb-956f0babcd95bc7b6d2d79ea345abdd6f464e65f.tar.gz gdb-956f0babcd95bc7b6d2d79ea345abdd6f464e65f.tar.bz2 |
sim: ppc: 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 was done for all the other ports years ago, so catch ppc up.
Diffstat (limited to 'sim/ppc/psim.c')
-rw-r--r-- | sim/ppc/psim.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sim/ppc/psim.c b/sim/ppc/psim.c index 0c3f5a1..e8c29ff 100644 --- a/sim/ppc/psim.c +++ b/sim/ppc/psim.c @@ -63,7 +63,7 @@ struct _psim { }; -int current_target_byte_order; +enum bfd_endian current_target_byte_order; int current_environment; int current_alignment; int current_floating_point; @@ -450,8 +450,8 @@ psim_create(const char *file_name, /* fill in the missing TARGET BYTE ORDER information */ current_target_byte_order = (tree_find_boolean_property(root, "/options/little-endian?") - ? LITTLE_ENDIAN - : BIG_ENDIAN); + ? BFD_ENDIAN_LITTLE + : BFD_ENDIAN_BIG); if (CURRENT_TARGET_BYTE_ORDER != current_target_byte_order) error("target and configured byte order conflict\n"); |