Blob Blame History Raw
From a919b41c576e9619b14bcc599a2a0c844943f40b Mon Sep 17 00:00:00 2001
Message-Id: <a919b41c576e9619b14bcc599a2a0c844943f40b@dist-git>
From: Jiri Denemark <jdenemar@redhat.com>
Date: Fri, 10 Jan 2020 12:01:47 +0100
Subject: [PATCH] cpu_map/x86: Add support for BFLOAT16 data type
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Introduced in QEMU by commit v4.1.0-266-g80db491da4.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
(cherry picked from commit b570139909fd5d11d82408218a8f1f590a6386b2)

https://bugzilla.redhat.com/show_bug.cgi?id=1749516

Conflicts:
	src/cpu_map/x86_features.xml
            - features are defined in src/cpu/cpu_map.xml

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Message-Id: <dac9dd35ec9d467da7ffef82de38adb9c8385d0f.1578654092.git.jdenemar@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
---
 src/cpu/cpu_map.xml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/cpu/cpu_map.xml b/src/cpu/cpu_map.xml
index 9609ce71a7..c09c80a2e9 100644
--- a/src/cpu/cpu_map.xml
+++ b/src/cpu/cpu_map.xml
@@ -344,6 +344,10 @@
       <cpuid eax_in='0x07' ecx_in='0x00' edx='0x80000000'/>
     </feature>
 
+    <feature name='avx512-bf16'>
+      <cpuid eax_in='0x07' ecx_in='0x01' eax='0x00000020'/>
+    </feature>
+
     <!-- Processor Extended State Enumeration sub leaf 1 -->
     <feature name='xsaveopt'>
       <cpuid eax_in='0x0d' ecx_in='0x01' eax='0x00000001'/>
-- 
2.24.1