| 1 | /* |
| 2 | * PowerPC cpu parameters for qemu. |
| 3 | * |
| 4 | * Copyright (c) 2007 Jocelyn Mayer |
| 5 | * SPDX-License-Identifier: LGPL-2.0-or-later |
| 6 | */ |
| 7 | |
| 8 | #ifndef PPC_CPU_PARAM_H |
| 9 | #define PPC_CPU_PARAM_H |
| 10 | |
| 11 | #ifdef TARGET_PPC64 |
| 12 | /* |
| 13 | * Note that the PPC environment architecture talks about 80 bit virtual |
| 14 | * addresses, with segmentation. Obviously that's not all visible to a |
| 15 | * single process, which is all we're concerned with here. |
| 16 | */ |
| 17 | # ifdef TARGET_ABI32 |
| 18 | # define TARGET_VIRT_ADDR_SPACE_BITS 32 |
| 19 | # else |
| 20 | # define TARGET_VIRT_ADDR_SPACE_BITS 64 |
| 21 | # endif |
| 22 | #else |
| 23 | # define TARGET_VIRT_ADDR_SPACE_BITS 32 |
| 24 | #endif |
| 25 | |
| 26 | #ifdef CONFIG_USER_ONLY |
| 27 | /* Allow user-only to vary page size from 4k */ |
| 28 | # define TARGET_PAGE_BITS_VARY |
| 29 | #else |
| 30 | # define TARGET_PAGE_BITS 12 |
| 31 | #endif |
| 32 | |
| 33 | #endif |