| 1 | /* |
| 2 | * Alpha cpu parameters for qemu. |
| 3 | * |
| 4 | * Copyright (c) 2007 Jocelyn Mayer |
| 5 | * SPDX-License-Identifier: LGPL-2.0-or-later |
| 6 | */ |
| 7 | |
| 8 | #ifndef ALPHA_CPU_PARAM_H |
| 9 | #define ALPHA_CPU_PARAM_H |
| 10 | |
| 11 | #ifdef CONFIG_USER_ONLY |
| 12 | /* |
| 13 | * Allow user-only to vary page size. Real hardware allows only 8k and 64k, |
| 14 | * but since any variance means guests cannot assume a fixed value, allow |
| 15 | * a 4k minimum to match x86 host, which can minimize emulation issues. |
| 16 | */ |
| 17 | # define TARGET_PAGE_BITS_VARY |
| 18 | # define TARGET_VIRT_ADDR_SPACE_BITS 63 |
| 19 | #else |
| 20 | # define TARGET_PAGE_BITS 13 |
| 21 | # define TARGET_VIRT_ADDR_SPACE_BITS (30 + TARGET_PAGE_BITS) |
| 22 | #endif |
| 23 | |
| 24 | #endif |