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