From 089003015acebfa0b6d43af5a625040d1093558e Mon Sep 17 00:00:00 2001 From: Richard Kreckel Date: Mon, 27 Sep 2004 20:14:44 +0000 Subject: [PATCH] Support for little-endian Mips, second shot * src/base/digitseq/cl_asm_mipsel_.cc: New file... * src/base/digitseq/cl_asm_cc: ...used here. * src/base/digitseq/cl_asm.h: Include cl_asm_mips.h for any endianness. * include/cln/object.h: Set alignment for mipsel explicitly. --- ChangeLog | 8 ++++++++ include/cln/object.h | 2 +- src/base/digitseq/cl_asm.h | 2 +- src/base/digitseq/cl_asm_.cc | 4 ++++ src/base/digitseq/cl_asm_mipsel_.cc | 2 ++ 5 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 src/base/digitseq/cl_asm_mipsel_.cc diff --git a/ChangeLog b/ChangeLog index f1372dd..7cd89ef 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2004-09-27 Richard B. Kreckel + + Support for little-endian Mips, second shot + * src/base/digitseq/cl_asm_mipsel_.cc: New file... + * src/base/digitseq/cl_asm_cc: ...used here. + * src/base/digitseq/cl_asm.h: Include cl_asm_mips.h for any endianness. + * include/cln/object.h: Set alignment for mipsel explicitly. + 2004-09-05 Richard B. Kreckel Support for little-endian Mips diff --git a/include/cln/object.h b/include/cln/object.h index 169a6aa..70faa35 100644 --- a/include/cln/object.h +++ b/include/cln/object.h @@ -22,7 +22,7 @@ namespace cln { #if defined(__m68k__) #define cl_word_alignment 2 #endif -#if defined(__i386__) || defined(__mips__) || defined(__sparc__) || defined(__hppa__) || defined(__arm__) || defined(__rs6000__) || defined(__m88k__) || defined(__convex__) || defined(__s390__) +#if defined(__i386__) || defined(__mips__) || defined(__mipsel__) || defined(__sparc__) || defined(__hppa__) || defined(__arm__) || defined(__rs6000__) || defined(__m88k__) || defined(__convex__) || defined(__s390__) #define cl_word_alignment 4 #endif #if defined(__alpha__) || defined(__mips64__) || defined(__sparc64__) || defined(__ia64__) || defined(__x86_64__) diff --git a/src/base/digitseq/cl_asm.h b/src/base/digitseq/cl_asm.h index e2479d7..61dc281 100644 --- a/src/base/digitseq/cl_asm.h +++ b/src/base/digitseq/cl_asm.h @@ -21,7 +21,7 @@ #include "cl_asm_i386.h" #endif -#if defined(__mips__) && !defined(__mips64__) && !defined(__mipsel__) && (intDsize==32) +#if (defined(__mips__) || defined(__mipsel__)) && !defined(__mips64__) && (intDsize==32) #include "cl_asm_mips.h" #endif diff --git a/src/base/digitseq/cl_asm_.cc b/src/base/digitseq/cl_asm_.cc index c6d099b..df30863 100644 --- a/src/base/digitseq/cl_asm_.cc +++ b/src/base/digitseq/cl_asm_.cc @@ -25,6 +25,10 @@ #include "cl_asm_mips_.cc" #endif +#if defined(__mipsel__) + #include "cl_asm_mipsel_.cc" +#endif + #if defined(__hppa__) #include "cl_asm_hppa_.cc" #endif diff --git a/src/base/digitseq/cl_asm_mipsel_.cc b/src/base/digitseq/cl_asm_mipsel_.cc new file mode 100644 index 0000000..ff99462 --- /dev/null +++ b/src/base/digitseq/cl_asm_mipsel_.cc @@ -0,0 +1,2 @@ +// The endianness is irrelevant for that code: +#include "cl_asm_mips_.cc"