xref: /qemu/target/i386/cpu-param.h (revision 513823e7521a09ed7ad1e32e6454bac3b2cbf52d)
1 /*
2  * i386 cpu parameters for qemu.
3  *
4  * Copyright (c) 2003 Fabrice Bellard
5  * SPDX-License-Identifier: LGPL-2.0-or-later
6  */
7 
8 #ifndef I386_CPU_PARAM_H
9 #define I386_CPU_PARAM_H
10 
11 #ifdef TARGET_X86_64
12 # define TARGET_PHYS_ADDR_SPACE_BITS  52
13 /*
14  * ??? This is really 48 bits, sign-extended, but the only thing
15  * accessible to userland with bit 48 set is the VSYSCALL, and that
16  * is handled via other mechanisms.
17  */
18 # define TARGET_VIRT_ADDR_SPACE_BITS  47
19 #else
20 # define TARGET_PHYS_ADDR_SPACE_BITS  36
21 # define TARGET_VIRT_ADDR_SPACE_BITS  32
22 #endif
23 #define TARGET_PAGE_BITS 12
24 
25 /* The x86 has a strong memory model with some store-after-load re-ordering */
26 #define TCG_GUEST_DEFAULT_MO      (TCG_MO_ALL & ~TCG_MO_ST_LD)
27 
28 #endif
29