[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 2/4] i386: Add macro for stibp
From: |
Eduardo Habkost |
Subject: |
[PULL 2/4] i386: Add macro for stibp |
Date: |
Mon, 16 Dec 2019 16:38:23 -0300 |
From: Cathy Zhang <address@hidden>
stibp feature is already added through the following commit.
https://github.com/qemu/qemu/commit/0e8916582991b9fd0b94850a8444b8b80d0a0955
Add a macro for it to allow CPU models to report it when host supports.
Signed-off-by: Cathy Zhang <address@hidden>
Reviewed-by: Xiaoyao Li <address@hidden>
Reviewed-by: Tao Xu <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Eduardo Habkost <address@hidden>
---
target/i386/cpu.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/target/i386/cpu.h b/target/i386/cpu.h
index 39d37e1225..af282936a7 100644
--- a/target/i386/cpu.h
+++ b/target/i386/cpu.h
@@ -771,6 +771,8 @@ typedef uint64_t FeatureWordArray[FEATURE_WORDS];
#define CPUID_7_0_EDX_AVX512_4FMAPS (1U << 3)
/* Speculation Control */
#define CPUID_7_0_EDX_SPEC_CTRL (1U << 26)
+/* Single Thread Indirect Branch Predictors */
+#define CPUID_7_0_EDX_STIBP (1U << 27)
/* Arch Capabilities */
#define CPUID_7_0_EDX_ARCH_CAPABILITIES (1U << 29)
/* Core Capability */
--
2.23.0
- [PULL 0/4] x86 queue, 2019-12-16, Eduardo Habkost, 2019/12/16
- [PULL 1/4] i386: Add MSR feature bit for MDS-NO, Eduardo Habkost, 2019/12/16
- [PULL 2/4] i386: Add macro for stibp,
Eduardo Habkost <=
- [PULL 3/4] i386: Add new CPU model Cooperlake, Eduardo Habkost, 2019/12/16
- [PULL 4/4] i386: Use g_autofree in a few places, Eduardo Habkost, 2019/12/16
- Re: [PULL 0/4] x86 queue, 2019-12-16, Peter Maydell, 2019/12/17