1 /* 2 * MIPS cpu parameters for qemu. 3 * 4 * SPDX-License-Identifier: LGPL-2.0-or-later 5 */ 6 7 #ifndef MIPS_CPU_PARAM_H 8 #define MIPS_CPU_PARAM_H 9 10 #ifdef TARGET_ABI_MIPSN64 11 #define TARGET_PHYS_ADDR_SPACE_BITS 48 12 #define TARGET_VIRT_ADDR_SPACE_BITS 48 13 #else 14 #define TARGET_PHYS_ADDR_SPACE_BITS 40 15 # ifdef CONFIG_USER_ONLY 16 # define TARGET_VIRT_ADDR_SPACE_BITS 31 17 # else 18 # define TARGET_VIRT_ADDR_SPACE_BITS 32 19 #endif 20 #endif 21 #ifdef CONFIG_USER_ONLY 22 #define TARGET_PAGE_BITS 12 23 #else 24 #define TARGET_PAGE_BITS_VARY 25 #define TARGET_PAGE_BITS_MIN 12 26 #endif 27 28 #define TCG_GUEST_DEFAULT_MO (0) 29 30 #endif 31