Revision c2e3dee6 cpu-defs.h
b/cpu-defs.h | ||
---|---|---|
37 | 37 |
|
38 | 38 |
#define TARGET_LONG_SIZE (TARGET_LONG_BITS / 8) |
39 | 39 |
|
40 |
typedef int16_t target_short __attribute__ ((aligned(TARGET_SHORT_ALIGNMENT))); |
|
41 |
typedef uint16_t target_ushort __attribute__((aligned(TARGET_SHORT_ALIGNMENT))); |
|
42 |
typedef int32_t target_int __attribute__((aligned(TARGET_INT_ALIGNMENT))); |
|
43 |
typedef uint32_t target_uint __attribute__((aligned(TARGET_INT_ALIGNMENT))); |
|
44 |
typedef int64_t target_llong __attribute__((aligned(TARGET_LLONG_ALIGNMENT))); |
|
45 |
typedef uint64_t target_ullong __attribute__((aligned(TARGET_LLONG_ALIGNMENT))); |
|
40 | 46 |
/* target_ulong is the type of a virtual address */ |
41 | 47 |
#if TARGET_LONG_SIZE == 4 |
42 |
typedef int32_t target_long; |
|
43 |
typedef uint32_t target_ulong; |
|
48 |
typedef int32_t target_long __attribute__((aligned(TARGET_LONG_ALIGNMENT)));
|
|
49 |
typedef uint32_t target_ulong __attribute__((aligned(TARGET_LONG_ALIGNMENT)));
|
|
44 | 50 |
#define TARGET_FMT_lx "%08x" |
45 | 51 |
#define TARGET_FMT_ld "%d" |
46 | 52 |
#define TARGET_FMT_lu "%u" |
47 | 53 |
#elif TARGET_LONG_SIZE == 8 |
48 |
typedef int64_t target_long; |
|
49 |
typedef uint64_t target_ulong; |
|
54 |
typedef int64_t target_long __attribute__((aligned(TARGET_LONG_ALIGNMENT)));
|
|
55 |
typedef uint64_t target_ulong __attribute__((aligned(TARGET_LONG_ALIGNMENT)));
|
|
50 | 56 |
#define TARGET_FMT_lx "%016" PRIx64 |
51 | 57 |
#define TARGET_FMT_ld "%" PRId64 |
52 | 58 |
#define TARGET_FMT_lu "%" PRIu64 |
Also available in: Unified diff