Revision e2542fe2 cpu-all.h

b/cpu-all.h
27 27
 * WORDS_ALIGNED : if defined, the host cpu can only make word aligned
28 28
 * memory accesses.
29 29
 *
30
 * WORDS_BIGENDIAN : if defined, the host cpu is big endian and
30
 * HOST_WORDS_BIGENDIAN : if defined, the host cpu is big endian and
31 31
 * otherwise little endian.
32 32
 *
33 33
 * (TARGET_WORDS_ALIGNED : same for target cpu (not supported yet))
......
37 37

  
38 38
#include "softfloat.h"
39 39

  
40
#if defined(WORDS_BIGENDIAN) != defined(TARGET_WORDS_BIGENDIAN)
40
#if defined(HOST_WORDS_BIGENDIAN) != defined(TARGET_WORDS_BIGENDIAN)
41 41
#define BSWAP_NEEDED
42 42
#endif
43 43

  
......
123 123
   endian ! */
124 124
typedef union {
125 125
    float64 d;
126
#if defined(WORDS_BIGENDIAN) \
126
#if defined(HOST_WORDS_BIGENDIAN) \
127 127
    || (defined(__arm__) && !defined(__VFP_FP__) && !defined(CONFIG_SOFTFLOAT))
128 128
    struct {
129 129
        uint32_t upper;
......
141 141
#ifdef TARGET_SPARC
142 142
typedef union {
143 143
    float128 q;
144
#if defined(WORDS_BIGENDIAN) \
144
#if defined(HOST_WORDS_BIGENDIAN) \
145 145
    || (defined(__arm__) && !defined(__VFP_FP__) && !defined(CONFIG_SOFTFLOAT))
146 146
    struct {
147 147
        uint32_t upmost;
......
221 221
/* NOTE: on arm, putting 2 in /proc/sys/debug/alignment so that the
222 222
   kernel handles unaligned load/stores may give better results, but
223 223
   it is a system wide setting : bad */
224
#if defined(WORDS_BIGENDIAN) || defined(WORDS_ALIGNED)
224
#if defined(HOST_WORDS_BIGENDIAN) || defined(WORDS_ALIGNED)
225 225

  
226 226
/* conservative code for little endian unaligned accesses */
227 227
static inline int lduw_le_p(const void *ptr)
......
398 398
}
399 399
#endif
400 400

  
401
#if !defined(WORDS_BIGENDIAN) || defined(WORDS_ALIGNED)
401
#if !defined(HOST_WORDS_BIGENDIAN) || defined(WORDS_ALIGNED)
402 402

  
403 403
static inline int lduw_be_p(const void *ptr)
404 404
{

Also available in: Unified diff