2 * MIPS cpu parameters for qemu.
4 * SPDX-License-Identifier: LGPL-2.0+
7 #ifndef MIPS_CPU_PARAM_H
8 #define MIPS_CPU_PARAM_H
11 # define TARGET_LONG_BITS 64
13 # define TARGET_LONG_BITS 32
15 #ifdef TARGET_ABI_MIPSN64
16 #define TARGET_PHYS_ADDR_SPACE_BITS 48
17 #define TARGET_VIRT_ADDR_SPACE_BITS 48
19 #define TARGET_PHYS_ADDR_SPACE_BITS 40
20 # ifdef CONFIG_USER_ONLY
21 # define TARGET_VIRT_ADDR_SPACE_BITS 31
23 # define TARGET_VIRT_ADDR_SPACE_BITS 32
26 #ifdef CONFIG_USER_ONLY
27 #define TARGET_PAGE_BITS 12
29 #define TARGET_PAGE_BITS_VARY
30 #define TARGET_PAGE_BITS_MIN 12