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 |
Michael van der Westhuizen | 401f8c5 | 2018-09-05 10:26:44 -0700 | [diff] [blame] | 6 | select UDELAY_TSC |
Kyösti Mälkki | 6617a77 | 2019-07-10 15:02:40 +0300 | [diff] [blame] | 7 | select TSC_MONOTONIC_TIMER |
Kyösti Mälkki | 0d6ddf8 | 2019-10-31 14:52:20 +0200 | [diff] [blame] | 8 | select UNKNOWN_TSC_RATE |
Patrick Rudolph | 57907fc | 2018-11-15 13:42:15 +0100 | [diff] [blame] | 9 | |
| 10 | if CPU_QEMU_X86 |
| 11 | |
Arthur Heymans | d79e485 | 2020-12-01 14:10:42 +0100 | [diff] [blame] | 12 | # coreboot i440fx does not support SMM |
| 13 | choice |
Arthur Heymans | a75a2fa | 2020-12-01 15:20:10 +0100 | [diff] [blame] | 14 | prompt "AP init" |
| 15 | default CPU_QEMU_X86_LAPIC_INIT |
| 16 | |
| 17 | config CPU_QEMU_X86_LAPIC_INIT |
| 18 | bool "Legacy serial LAPIC init" |
Kyösti Mälkki | 41a2c73 | 2021-05-29 21:23:18 +0300 | [diff] [blame] | 19 | select LEGACY_SMP_INIT |
Arthur Heymans | a75a2fa | 2020-12-01 15:20:10 +0100 | [diff] [blame] | 20 | |
| 21 | config CPU_QEMU_X86_PARALLEL_MP |
| 22 | bool "Parallel MP init" |
Arthur Heymans | a75a2fa | 2020-12-01 15:20:10 +0100 | [diff] [blame] | 23 | |
| 24 | endchoice |
| 25 | |
| 26 | choice |
Arthur Heymans | d79e485 | 2020-12-01 14:10:42 +0100 | [diff] [blame] | 27 | prompt "SMM support" |
| 28 | default CPU_QEMU_X86_ASEG_SMM |
| 29 | depends on BOARD_EMULATION_QEMU_X86_Q35 |
| 30 | |
| 31 | config CPU_QEMU_X86_NO_SMM |
| 32 | bool "No SMM" |
| 33 | select NO_SMM |
| 34 | |
| 35 | config CPU_QEMU_X86_ASEG_SMM |
| 36 | bool "SMM in ASEG" |
Kyösti Mälkki | 41a2c73 | 2021-05-29 21:23:18 +0300 | [diff] [blame] | 37 | depends on CPU_QEMU_X86_LAPIC_INIT |
Arthur Heymans | d79e485 | 2020-12-01 14:10:42 +0100 | [diff] [blame] | 38 | select SMM_ASEG |
| 39 | |
Arthur Heymans | e69d2df | 2020-12-01 18:29:13 +0100 | [diff] [blame] | 40 | config CPU_QEMU_X86_TSEG_SMM |
| 41 | bool "SMM in TSEG" |
| 42 | select SMM_TSEG |
Kyösti Mälkki | 41a2c73 | 2021-05-29 21:23:18 +0300 | [diff] [blame] | 43 | depends on CPU_QEMU_X86_PARALLEL_MP |
Arthur Heymans | d79e485 | 2020-12-01 14:10:42 +0100 | [diff] [blame] | 44 | |
| 45 | endchoice |
| 46 | |
Arthur Heymans | 5e31a19 | 2020-12-01 14:15:15 +0100 | [diff] [blame] | 47 | config MAX_CPUS |
| 48 | int |
Patrick Rudolph | cfa0225 | 2021-02-02 18:14:24 +0100 | [diff] [blame] | 49 | default 32 if SMM_TSEG |
| 50 | default 4 |
Arthur Heymans | 5e31a19 | 2020-12-01 14:15:15 +0100 | [diff] [blame] | 51 | |
Patrick Rudolph | 57907fc | 2018-11-15 13:42:15 +0100 | [diff] [blame] | 52 | config CPU_QEMU_X86_64 |
| 53 | bool "Experimental 64bit support" |
Angel Pons | 2db77907 | 2020-09-25 10:14:45 +0200 | [diff] [blame] | 54 | select ARCH_ALL_STAGES_X86_64 |
Patrick Rudolph | 57907fc | 2018-11-15 13:42:15 +0100 | [diff] [blame] | 55 | |
| 56 | config CPU_QEMU_X86_32 |
| 57 | bool |
| 58 | default n if CPU_QEMU_X86_64 |
| 59 | default y |
Patrick Rudolph | 57907fc | 2018-11-15 13:42:15 +0100 | [diff] [blame] | 60 | endif |