1 /* 2 * Sparc cpu parameters for qemu. 3 * 4 * SPDX-License-Identifier: LGPL-2.0-or-later 5 */ 6 7 #ifndef SPARC_CPU_PARAM_H 8 #define SPARC_CPU_PARAM_H 9 10 #ifdef TARGET_SPARC64 11 # define TARGET_PAGE_BITS 13 /* 8k */ 12 # define TARGET_PHYS_ADDR_SPACE_BITS 41 13 # ifdef TARGET_ABI32 14 # define TARGET_VIRT_ADDR_SPACE_BITS 32 15 # else 16 # define TARGET_VIRT_ADDR_SPACE_BITS 44 17 # endif 18 #else 19 # define TARGET_PAGE_BITS 12 /* 4k */ 20 # define TARGET_PHYS_ADDR_SPACE_BITS 36 21 # define TARGET_VIRT_ADDR_SPACE_BITS 32 22 #endif 23 24 #define TARGET_INSN_START_EXTRA_WORDS 1 25 26 #endif 27