Revision 9b605b9e target-ppc/cpu.h
b/target-ppc/cpu.h | ||
---|---|---|
30 | 30 |
typedef uint64_t ppc_gpr_t; |
31 | 31 |
#define TARGET_GPR_BITS 64 |
32 | 32 |
#define TARGET_LONG_BITS 64 |
33 |
#define REGX "%016" PRIx64 |
|
34 | 33 |
#define TARGET_PAGE_BITS 12 |
35 | 34 |
|
36 | 35 |
#else /* defined (TARGET_PPC64) */ |
... | ... | |
43 | 42 |
*/ |
44 | 43 |
typedef uint64_t ppc_gpr_t; |
45 | 44 |
#define TARGET_GPR_BITS 64 |
46 |
#define REGX "%08" PRIx64 |
|
47 | 45 |
#else /* (HOST_LONG_BITS >= 64) */ |
48 | 46 |
typedef uint32_t ppc_gpr_t; |
49 | 47 |
#define TARGET_GPR_BITS 32 |
50 |
#define REGX "%08" PRIx32 |
|
51 | 48 |
#endif /* (HOST_LONG_BITS >= 64) */ |
52 | 49 |
|
53 | 50 |
#define TARGET_LONG_BITS 32 |
... | ... | |
72 | 69 |
|
73 | 70 |
#endif /* defined (TARGET_PPC64) */ |
74 | 71 |
|
72 |
/* A ppc_gpr_t should not be printed directly as the high bits may be |
|
73 |
garbage. It should always be cast to a target_ulong first. */ |
|
74 |
#define REGX TARGET_FMT_lx |
|
75 |
|
|
75 | 76 |
#include "cpu-defs.h" |
76 | 77 |
|
77 | 78 |
#define ADDRX TARGET_FMT_lx |
Also available in: Unified diff