diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2022-11-06 16:43:21 +1100 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2023-05-16 15:21:39 -0700 |
commit | 6d3f2e3c64ac93ff6f7e286068091d5559df255c (patch) | |
tree | 09ae357d616d1c299b86e9425f52acdd94e3ef68 /include/qemu | |
parent | e61f1efeb730fd64441131ea721086065904ff67 (diff) | |
download | qemu-6d3f2e3c64ac93ff6f7e286068091d5559df255c.zip qemu-6d3f2e3c64ac93ff6f7e286068091d5559df255c.tar.gz qemu-6d3f2e3c64ac93ff6f7e286068091d5559df255c.tar.bz2 |
tcg/i386: Add have_atomic16
Notice when Intel or AMD have guaranteed that vmovdqa is atomic.
The new variable will also be used in generated code.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'include/qemu')
-rw-r--r-- | include/qemu/cpuid.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/qemu/cpuid.h b/include/qemu/cpuid.h index 1451e8e..35325f1 100644 --- a/include/qemu/cpuid.h +++ b/include/qemu/cpuid.h @@ -71,6 +71,24 @@ #define bit_LZCNT (1 << 5) #endif +/* + * Signatures for different CPU implementations as returned from Leaf 0. + */ + +#ifndef signature_INTEL_ecx +/* "Genu" "ineI" "ntel" */ +#define signature_INTEL_ebx 0x756e6547 +#define signature_INTEL_edx 0x49656e69 +#define signature_INTEL_ecx 0x6c65746e +#endif + +#ifndef signature_AMD_ecx +/* "Auth" "enti" "cAMD" */ +#define signature_AMD_ebx 0x68747541 +#define signature_AMD_edx 0x69746e65 +#define signature_AMD_ecx 0x444d4163 +#endif + static inline unsigned xgetbv_low(unsigned c) { unsigned a, d; |