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 |
| 13 | prompt "SMM support" |
| 14 | default CPU_QEMU_X86_ASEG_SMM |
| 15 | depends on BOARD_EMULATION_QEMU_X86_Q35 |
| 16 | |
| 17 | config CPU_QEMU_X86_NO_SMM |
| 18 | bool "No SMM" |
| 19 | select NO_SMM |
| 20 | |
| 21 | config CPU_QEMU_X86_ASEG_SMM |
| 22 | bool "SMM in ASEG" |
| 23 | select SMM_ASEG |
| 24 | |
| 25 | #config CPU_QEMU_X86_TSEG_SMM |
| 26 | # bool "SMM in TSEG" |
| 27 | # select SMM_TSEG |
| 28 | |
| 29 | endchoice |
| 30 | |
Patrick Rudolph | 57907fc | 2018-11-15 13:42:15 +0100 | [diff] [blame] | 31 | config CPU_QEMU_X86_64 |
| 32 | bool "Experimental 64bit support" |
Angel Pons | 2db77907 | 2020-09-25 10:14:45 +0200 | [diff] [blame] | 33 | select ARCH_ALL_STAGES_X86_64 |
Patrick Rudolph | 57907fc | 2018-11-15 13:42:15 +0100 | [diff] [blame] | 34 | select ARCH_POSTCAR_X86_64 |
Patrick Rudolph | 57907fc | 2018-11-15 13:42:15 +0100 | [diff] [blame] | 35 | |
| 36 | config CPU_QEMU_X86_32 |
| 37 | bool |
| 38 | default n if CPU_QEMU_X86_64 |
| 39 | default y |
Angel Pons | a32df26 | 2020-09-25 10:20:11 +0200 | [diff] [blame] | 40 | select ARCH_ALL_STAGES_X86_32 |
Patrick Rudolph | 57907fc | 2018-11-15 13:42:15 +0100 | [diff] [blame] | 41 | select ARCH_POSTCAR_X86_32 |
Patrick Rudolph | 57907fc | 2018-11-15 13:42:15 +0100 | [diff] [blame] | 42 | endif |