diff options
author | Marcus Comstedt <marcus@mc.pp.se> | 2019-08-18 16:03:43 +0200 |
---|---|---|
committer | Chih-Min Chao <chihmin.chao@sifive.com> | 2019-10-29 03:33:45 -0700 |
commit | 65648669c15343cb1aa6b102cf2eae0ed91024cd (patch) | |
tree | 4530bee628e72cf17adeca999e9826ea4a0f88a9 /softfloat | |
parent | 7c85cc44d13547ab7260438d97671d7f423e5d6c (diff) | |
download | spike-65648669c15343cb1aa6b102cf2eae0ed91024cd.zip spike-65648669c15343cb1aa6b102cf2eae0ed91024cd.tar.gz spike-65648669c15343cb1aa6b102cf2eae0ed91024cd.tar.bz2 |
Implement support for big-endian hosts
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
Diffstat (limited to 'softfloat')
-rw-r--r-- | softfloat/platform.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/softfloat/platform.h b/softfloat/platform.h index 03dd429..48838cd 100644 --- a/softfloat/platform.h +++ b/softfloat/platform.h @@ -36,7 +36,10 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. /*---------------------------------------------------------------------------- *----------------------------------------------------------------------------*/ +#include "config.h" +#ifndef WORDS_BIGENDIAN #define LITTLEENDIAN 1 +#endif #define INLINE_LEVEL 5 #define SOFTFLOAT_FAST_INT64 |