Patrick Georgi | c49d7a3 | 2020-05-08 22:50:46 +0200 | [diff] [blame] | 1 | ## SPDX-License-Identifier: GPL-2.0-only |
Gerd Hoffmann | cbf3073 | 2013-05-31 09:23:26 +0200 | [diff] [blame] | 2 | |
3 | config CPU_QEMU_X86 | ||||
4 | bool | ||||
Angel Pons | 8e035e3 | 2021-06-22 12:58:20 +0200 | [diff] [blame] | 5 | select ARCH_X86 |
Angel Pons | 16fe5e1 | 2021-06-22 15:41:59 +0200 | [diff] [blame] | 6 | select HAVE_EXP_X86_64_SUPPORT |
Michael van der Westhuizen | 401f8c5 | 2018-09-05 10:26:44 -0700 | [diff] [blame] | 7 | select UDELAY_TSC |
Kyösti Mälkki | 6617a77 | 2019-07-10 15:02:40 +0300 | [diff] [blame] | 8 | select TSC_MONOTONIC_TIMER |
Kyösti Mälkki | 0d6ddf8 | 2019-10-31 14:52:20 +0200 | [diff] [blame] | 9 | select UNKNOWN_TSC_RATE |
Patrick Rudolph | 57907fc | 2018-11-15 13:42:15 +0100 | [diff] [blame] | 10 | |
11 | if CPU_QEMU_X86 | ||||
12 | |||||
Arthur Heymans | d79e485 | 2020-12-01 14:10:42 +0100 | [diff] [blame] | 13 | # coreboot i440fx does not support SMM |
14 | choice | ||||
Arthur Heymans | a75a2fa | 2020-12-01 15:20:10 +0100 | [diff] [blame] | 15 | prompt "AP init" |
16 | default CPU_QEMU_X86_LAPIC_INIT | ||||
17 | |||||
18 | config CPU_QEMU_X86_LAPIC_INIT | ||||
19 | bool "Legacy serial LAPIC init" | ||||
Kyösti Mälkki | 41a2c73 | 2021-05-29 21:23:18 +0300 | [diff] [blame] | 20 | select LEGACY_SMP_INIT |
Arthur Heymans | a75a2fa | 2020-12-01 15:20:10 +0100 | [diff] [blame] | 21 | |
22 | config CPU_QEMU_X86_PARALLEL_MP | ||||
23 | bool "Parallel MP init" | ||||
Arthur Heymans | a75a2fa | 2020-12-01 15:20:10 +0100 | [diff] [blame] | 24 | |
25 | endchoice | ||||
26 | |||||
27 | choice | ||||
Arthur Heymans | d79e485 | 2020-12-01 14:10:42 +0100 | [diff] [blame] | 28 | prompt "SMM support" |
29 | default CPU_QEMU_X86_ASEG_SMM | ||||
30 | depends on BOARD_EMULATION_QEMU_X86_Q35 | ||||
31 | |||||
32 | config CPU_QEMU_X86_NO_SMM | ||||
33 | bool "No SMM" | ||||
34 | select NO_SMM | ||||
35 | |||||
36 | config CPU_QEMU_X86_ASEG_SMM | ||||
37 | bool "SMM in ASEG" | ||||
Kyösti Mälkki | 41a2c73 | 2021-05-29 21:23:18 +0300 | [diff] [blame] | 38 | depends on CPU_QEMU_X86_LAPIC_INIT |
Arthur Heymans | d79e485 | 2020-12-01 14:10:42 +0100 | [diff] [blame] | 39 | select SMM_ASEG |
40 | |||||
Arthur Heymans | e69d2df | 2020-12-01 18:29:13 +0100 | [diff] [blame] | 41 | config CPU_QEMU_X86_TSEG_SMM |
42 | bool "SMM in TSEG" | ||||
43 | select SMM_TSEG | ||||
Kyösti Mälkki | 41a2c73 | 2021-05-29 21:23:18 +0300 | [diff] [blame] | 44 | depends on CPU_QEMU_X86_PARALLEL_MP |
Arthur Heymans | d79e485 | 2020-12-01 14:10:42 +0100 | [diff] [blame] | 45 | |
46 | endchoice | ||||
47 | |||||
Arthur Heymans | 5e31a19 | 2020-12-01 14:15:15 +0100 | [diff] [blame] | 48 | config MAX_CPUS |
49 | int | ||||
Patrick Rudolph | cfa0225 | 2021-02-02 18:14:24 +0100 | [diff] [blame] | 50 | default 32 if SMM_TSEG |
51 | default 4 | ||||
Arthur Heymans | 5e31a19 | 2020-12-01 14:15:15 +0100 | [diff] [blame] | 52 | |
Angel Pons | e19d0ef | 2021-06-22 16:33:58 +0200 | [diff] [blame^] | 53 | config HEAP_SIZE |
54 | default 0x8000 | ||||
55 | |||||
Patrick Rudolph | 57907fc | 2018-11-15 13:42:15 +0100 | [diff] [blame] | 56 | endif |