projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Really remove tic30-aout support
[deliverable/binutils-gdb.git]
/
sim
/
common
/
sim-endian.c
diff --git
a/sim/common/sim-endian.c
b/sim/common/sim-endian.c
index 9e256c39ba5e62bde4dd6baf5913d16318e6fdc0..8b3ec9e43228aefabbbc1cff038f84ee102b89db 100644
(file)
--- a/
sim/common/sim-endian.c
+++ b/
sim/common/sim-endian.c
@@
-1,6
+1,6
@@
/* The common simulator framework for GDB, the GNU Debugger.
/* The common simulator framework for GDB, the GNU Debugger.
- Copyright 2002-20
15
Free Software Foundation, Inc.
+ Copyright 2002-20
20
Free Software Foundation, Inc.
Contributed by Andrew Cagney and Red Hat.
Contributed by Andrew Cagney and Red Hat.
@@
-31,7
+31,7
@@
#define _SWAP_1(SET,RAW) SET (RAW)
#endif
#define _SWAP_1(SET,RAW) SET (RAW)
#endif
-#if !defined(_SWAP_2) && (
WITH_HOST_BYTE_ORDER == LITTLE_ENDIAN
) && defined(htons)
+#if !defined(_SWAP_2) && (
HOST_BYTE_ORDER == BFD_ENDIAN_LITTLE
) && defined(htons)
#define _SWAP_2(SET,RAW) SET htons (RAW)
#endif
#define _SWAP_2(SET,RAW) SET htons (RAW)
#endif
@@
-39,7
+39,7
@@
#define _SWAP_2(SET,RAW) SET (((RAW) >> 8) | ((RAW) << 8))
#endif
#define _SWAP_2(SET,RAW) SET (((RAW) >> 8) | ((RAW) << 8))
#endif
-#if !defined(_SWAP_4) && (
WITH_HOST_BYTE_ORDER == LITTLE_ENDIAN
) && defined(htonl)
+#if !defined(_SWAP_4) && (
HOST_BYTE_ORDER == BFD_ENDIAN_LITTLE
) && defined(htonl)
#define _SWAP_4(SET,RAW) SET htonl (RAW)
#endif
#define _SWAP_4(SET,RAW) SET htonl (RAW)
#endif
@@
-93,7
+93,7
@@
INLINE_SIM_ENDIAN\
(unsigned_8)
sim_endian_split_16 (unsigned_16 word, int w)
{
(unsigned_8)
sim_endian_split_16 (unsigned_16 word, int w)
{
- if (
CURRENT_HOST_BYTE_ORDER == LITTLE_ENDIAN
)
+ if (
HOST_BYTE_ORDER == BFD_ENDIAN_LITTLE
)
{
return word.a[1 - w];
}
{
return word.a[1 - w];
}
@@
-110,7
+110,7
@@
sim_endian_join_16 (unsigned_8 h, unsigned_8 l)
{
unsigned_16 word;
{
unsigned_16 word;
- if (
CURRENT_HOST_BYTE_ORDER == LITTLE_ENDIAN
)
+ if (
HOST_BYTE_ORDER == BFD_ENDIAN_LITTLE
)
{
word.a[0] = l;
word.a[1] = h;
{
word.a[0] = l;
word.a[1] = h;
This page took
0.025149 seconds
and
4
git commands to generate.