aboutsummaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorSteve Chamberlain <sac@cygnus>1993-03-03 23:07:53 +0000
committerSteve Chamberlain <sac@cygnus>1993-03-03 23:07:53 +0000
commit18079b9e6f0bb7fa9d646872f3cf6755cba5427e (patch)
treea69fe8584da0ad827c756f2e1eea8adbc1eadbc5 /sim
parent2492e118e3474d1abe584171463160d591d7b469 (diff)
downloadgdb-18079b9e6f0bb7fa9d646872f3cf6755cba5427e.zip
gdb-18079b9e6f0bb7fa9d646872f3cf6755cba5427e.tar.gz
gdb-18079b9e6f0bb7fa9d646872f3cf6755cba5427e.tar.bz2
Found trying to compile on ok.
* Makefile.in: Don't use cb or indent * p1.c, state.h, writecode.c: lint
Diffstat (limited to 'sim')
-rw-r--r--sim/h8300/p1.c4
-rw-r--r--sim/h8300/state.h4
2 files changed, 2 insertions, 6 deletions
diff --git a/sim/h8300/p1.c b/sim/h8300/p1.c
index 95bbd99..2f5a88f 100644
--- a/sim/h8300/p1.c
+++ b/sim/h8300/p1.c
@@ -63,15 +63,11 @@ meminit ()
{
saved_state.bregp[tmp] = (unsigned char *) (saved_state.reg + tmp);
saved_state.bregp[tmp + 8] = saved_state.bregp[tmp] + 1;
- if (HOST_IS_LITTLE_ENDIAN)
- abort();
}
else
{
saved_state.bregp[tmp + 8] = (unsigned char *) (saved_state.reg + tmp);
saved_state.bregp[tmp] = saved_state.bregp[tmp + 8] + 1;
- if (!HOST_IS_LITTLE_ENDIAN)
- abort();
}
}
diff --git a/sim/h8300/state.h b/sim/h8300/state.h
index 799706b..5daf532 100644
--- a/sim/h8300/state.h
+++ b/sim/h8300/state.h
@@ -16,7 +16,7 @@
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*/
-
+#include "../endian.h"
#define SET_WORD_MEM(x,y) {saved_state.mem[(x)>>1] = y;}
#define SET_BYTE_MEM(x,y) {BYTE_MEM(x)=y;}
@@ -66,7 +66,7 @@ saved_state;
#define OCRS (1<<4)
-#ifdef __GO32__
+#ifdef LITTLE_ENDIAN_HOST
#define HOST_IS_LITTLE_ENDIAN 1
#else
#define HOST_IS_LITTLE_ENDIAN 0