From 67b6034a0f4d1a711c6db6a9cd05411869c3fd86 Mon Sep 17 00:00:00 2001 From: Cathy Zhang Date: Tue, 14 Jan 2020 07:57:08 -0500 Subject: [PATCH] i386: Add macro for stibp 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. Backports commit 5af514d0cb314f43bc53f2aefb437f6451d64d0c from qemu --- qemu/target/i386/cpu.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qemu/target/i386/cpu.h b/qemu/target/i386/cpu.h index e22fa06b..2c231d12 100644 --- a/qemu/target/i386/cpu.h +++ b/qemu/target/i386/cpu.h @@ -716,6 +716,8 @@ typedef uint32_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 */