Revision 52705890 target-ppc/cpu.h
b/target-ppc/cpu.h | ||
---|---|---|
29 | 29 |
#define TARGET_LONG_BITS 64 |
30 | 30 |
#define TARGET_PAGE_BITS 12 |
31 | 31 |
|
32 |
/* Note that the official physical address space bits is 62-M where M |
|
33 |
is implementation dependent. I've not looked up M for the set of |
|
34 |
cpus we emulate at the system level. */ |
|
35 |
#define TARGET_PHYS_ADDR_SPACE_BITS 62 |
|
36 |
|
|
37 |
/* Note that the PPC environment architecture talks about 80 bit virtual |
|
38 |
addresses, with segmentation. Obviously that's not all visible to a |
|
39 |
single process, which is all we're concerned with here. */ |
|
40 |
#ifdef TARGET_ABI32 |
|
41 |
# define TARGET_VIRT_ADDR_SPACE_BITS 32 |
|
42 |
#else |
|
43 |
# define TARGET_VIRT_ADDR_SPACE_BITS 64 |
|
44 |
#endif |
|
45 |
|
|
32 | 46 |
#else /* defined (TARGET_PPC64) */ |
33 | 47 |
/* PowerPC 32 definitions */ |
34 | 48 |
#define TARGET_LONG_BITS 32 |
... | ... | |
50 | 64 |
#define TARGET_PAGE_BITS 12 |
51 | 65 |
#endif /* defined(TARGET_PPCEMB) */ |
52 | 66 |
|
67 |
#define TARGET_PHYS_ADDR_SPACE_BITS 32 |
|
68 |
#define TARGET_VIRT_ADDR_SPACE_BITS 32 |
|
69 |
|
|
53 | 70 |
#endif /* defined (TARGET_PPC64) */ |
54 | 71 |
|
55 | 72 |
#define CPUState struct CPUPPCState |
Also available in: Unified diff