This is the mail archive of the
sid@sources.redhat.com
mailing list for the SID project.
Add mips support to sid/include/sidtypes.h
- From: Thiemo Seufer <ica2_ts at csv dot ica dot uni-stuttgart dot de>
- To: sid at sources dot redhat dot com
- Date: Thu, 27 Jan 2005 01:15:07 +0100
- Subject: Add mips support to sid/include/sidtypes.h
[ I'm not subscribed to sid@s.r.c, please Cc me for replies ]
Hello all,
this patch adds support for MIPS, both endiannesses, to
sid/include/sidtypes.h.
Thiemo
/sid/include/ChangeLog
2005-01-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
* sidtypes.h (HOST_BIG_ENDIAN): Add support for both MIPS
endiannesses.
Index: sid/include/sidtypes.h
===================================================================
RCS file: /cvs/src/src/sid/include/sidtypes.h,v
retrieving revision 1.3
diff -u -p -r1.3 sidtypes.h
--- sid/include/sidtypes.h 16 Dec 2004 21:16:35 -0000 1.3
+++ sid/include/sidtypes.h 26 Jan 2005 23:43:48 -0000
@@ -25,9 +25,9 @@
# define HOST_BIG_ENDIAN true
# endif
#else
-# if defined(__i386__) || defined(__x86_64__) || defined(__alpha__)
+# if defined(__i386__) || defined(__x86_64__) || defined(__alpha__) || (defined(__mips__) && defined(_MIPSEL))
# define HOST_BIG_ENDIAN false
-# elif defined(__sparc__) || defined(__powerpc__)
+# elif defined(__sparc__) || defined(__powerpc__) || (defined(__mips__) && defined(_MIPSEB))
# define HOST_BIG_ENDIAN true
# else
# error "Unknown host platform"