Found trying to compile on ok.
authorSteve Chamberlain <sac@cygnus>
Wed, 3 Mar 1993 23:07:53 +0000 (23:07 +0000)
committerSteve Chamberlain <sac@cygnus>
Wed, 3 Mar 1993 23:07:53 +0000 (23:07 +0000)
* Makefile.in: Don't use cb or indent
* p1.c, state.h, writecode.c: lint

sim/h8300/p1.c
sim/h8300/state.h

index 95bbd99cbd0512b7511fb09325dc371b860514bf..2f5a88f6cbd1897578f9f17b3b590f3ee4bc11cd 100644 (file)
@@ -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();
            }
        }
 
index 799706ba5fd89c40248b0ca7cb5c8794b16e8b6e..5daf5329e1c6517253c5849bea2526826da3e396 100644 (file)
@@ -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