target/i386: add FSRM to TCG
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 27 Feb 2023 09:57:09 +0000 (10:57 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 27 Feb 2023 17:43:53 +0000 (18:43 +0100)
Fast short REP MOVS can be added to TCG, since a trivial translation
of string operation is a good option for short lengths.

Reviewed-by: Xiaoyao Li <xiaoyao.li@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/cpu.c

index 4d2b8d0444df792a9a3839f7429be2d1ed279215..34e2cead870eeae45eaa6ea93f542c1b5afbc47c 100644 (file)
@@ -661,7 +661,7 @@ void x86_cpu_vendor_words2str(char *dst, uint32_t vendor1,
 #define TCG_7_0_ECX_FEATURES (CPUID_7_0_ECX_UMIP | CPUID_7_0_ECX_PKU | \
           /* CPUID_7_0_ECX_OSPKE is dynamic */ \
           CPUID_7_0_ECX_LA57 | CPUID_7_0_ECX_PKS | CPUID_7_0_ECX_VAES)
-#define TCG_7_0_EDX_FEATURES 0
+#define TCG_7_0_EDX_FEATURES CPUID_7_0_EDX_FSRM
 #define TCG_7_1_EAX_FEATURES 0
 #define TCG_APM_FEATURES 0
 #define TCG_6_EAX_FEATURES CPUID_6_EAX_ARAT