Merge tag 'qemu-macppc-20230206' of https://github.com/mcayland/qemu into staging
[qemu.git] / target / nios2 / cpu-param.h
blob177d7208644664ac781996e5320b9118453b9685
1 /*
2 * Altera Nios II cpu parameters for qemu.
4 * Copyright (c) 2012 Chris Wulff <crwulff@gmail.com>
5 * SPDX-License-Identifier: LGPL-2.1+
6 */
8 #ifndef NIOS2_CPU_PARAM_H
9 #define NIOS2_CPU_PARAM_H
11 #define TARGET_LONG_BITS 32
12 #define TARGET_PAGE_BITS 12
13 #define TARGET_PHYS_ADDR_SPACE_BITS 32
14 #ifdef CONFIG_USER_ONLY
15 # define TARGET_VIRT_ADDR_SPACE_BITS 31
16 #else
17 # define TARGET_VIRT_ADDR_SPACE_BITS 32
18 #endif
19 #define NB_MMU_MODES 2
21 #endif