Revision 5dc4b744 target-mips/cpu.h
b/target-mips/cpu.h | ||
---|---|---|
15 | 15 |
typedef unsigned int uint_fast16_t; |
16 | 16 |
#endif |
17 | 17 |
|
18 |
#ifdef MIPS_HAS_MIPS64 |
|
19 |
#define SIGN_EXTEND32(val) (((((uint64_t)(val)) & 0xFFFFFFFF) ^ 0x80000000) - 0x80000000) |
|
20 | 18 |
/* target_ulong size spec */ |
19 |
#ifdef MIPS_HAS_MIPS64 |
|
21 | 20 |
#define TLSZ "%016llx" |
22 | 21 |
#else |
23 |
#define SIGN_EXTEND32(val) (val) |
|
24 |
/* target_ulong size spec */ |
|
25 | 22 |
#define TLSZ "%08x" |
26 | 23 |
#endif |
27 | 24 |
|
Also available in: Unified diff