diff options
author | Jiri Gaisler <jiri@gaisler.se> | 2015-03-16 01:14:09 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2015-03-16 01:16:35 -0400 |
commit | 9c5f41df36176d86afa65fc9b69b8fd6f6044547 (patch) | |
tree | 76a3dc2a8f5fff59c7e9a2fd7d3113455fed669e /sim/erc32/sis.h | |
parent | a4f851ffab57821a4904a9a28d8503500b77200e (diff) | |
download | gdb-9c5f41df36176d86afa65fc9b69b8fd6f6044547.zip gdb-9c5f41df36176d86afa65fc9b69b8fd6f6044547.tar.gz gdb-9c5f41df36176d86afa65fc9b69b8fd6f6044547.tar.bz2 |
sim/erc32: use SIM_AC_OPTION_HOSTENDIAN to probe for host endianess
Diffstat (limited to 'sim/erc32/sis.h')
-rw-r--r-- | sim/erc32/sis.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/sim/erc32/sis.h b/sim/erc32/sis.h index dc02c65..6820cb4 100644 --- a/sim/erc32/sis.h +++ b/sim/erc32/sis.h @@ -23,8 +23,13 @@ #include "ansidecl.h" #include "gdb/callback.h" #include "gdb/remote-sim.h" - -#include "end.h" +#include <sim-config.h> + +#if WITH_HOST_BYTE_ORDER == BIG_ENDIAN +#define HOST_BIG_ENDIAN +#else +#define HOST_LITTLE_ENDIAN +#endif #define I_ACC_EXC 1 @@ -60,7 +65,7 @@ typedef long long int64; /* 64-bit signed int */ struct pstate { float64 fd[16]; /* FPU registers */ -#ifdef HOST_LITTLE_ENDIAN_FLOAT +#ifdef HOST_LITTLE_ENDIAN float32 fs[32]; float32 *fdp; #else |