summaryrefslogtreecommitdiff
path: root/src/cpu/qemu-x86/Kconfig
blob: d60f70fb482a20be29e26bf310bf32847c2a1e83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
## SPDX-License-Identifier: GPL-2.0-only

config CPU_QEMU_X86
	bool
	select UDELAY_TSC
	select TSC_MONOTONIC_TIMER
	select UNKNOWN_TSC_RATE

if CPU_QEMU_X86

# coreboot i440fx does not support SMM
choice
	prompt "AP init"
	default CPU_QEMU_X86_LAPIC_INIT

config CPU_QEMU_X86_LAPIC_INIT
	bool "Legacy serial LAPIC init"

config CPU_QEMU_X86_PARALLEL_MP
	bool "Parallel MP init"
	select PARALLEL_MP

endchoice

choice
	prompt "SMM support"
	default CPU_QEMU_X86_ASEG_SMM
	depends on BOARD_EMULATION_QEMU_X86_Q35

config CPU_QEMU_X86_NO_SMM
	bool "No SMM"
	select NO_SMM

config CPU_QEMU_X86_ASEG_SMM
	bool "SMM in ASEG"
	depends on !PARALLEL_MP
	select SMM_ASEG

config CPU_QEMU_X86_TSEG_SMM
	bool "SMM in TSEG"
	select SMM_TSEG
	depends on PARALLEL_MP

endchoice

choice
	prompt "SMM loader"
	default CPU_QEMU_X86_SMMLOADERV1
	depends on SMM_TSEG

config CPU_QEMU_X86_SMMLOADERV1
	bool "smmloader v1"

config CPU_QEMU_X86_SMMLOADERV2
	bool "smmloader v2"
	select X86_SMM_LOADER_VERSION2

endchoice

config MAX_CPUS
	int
	default 32 if SMM_TSEG
	default 4

config CPU_QEMU_X86_64
	bool "Experimental 64bit support"
	select ARCH_ALL_STAGES_X86_64
	select ARCH_POSTCAR_X86_64

config CPU_QEMU_X86_32
	bool
	default n if CPU_QEMU_X86_64
	default y
	select ARCH_ALL_STAGES_X86_32
	select ARCH_POSTCAR_X86_32
endif