1 Star 0 Fork 120

卫少坤/qemu_src

forked from src-openEuler/qemu 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
target-i386-Add-Hygon-Dhyana-v3-CPU-model.patch 1.34 KB
一键复制 编辑 原始数据 按行查看 历史
Jiabo Feng 提交于 2024-06-15 08:53 . QEMU update to version 8.2.0-14;
From 7d4bc795419a69457ee5f2e32674183dc009d48f Mon Sep 17 00:00:00 2001
From: Yanjing Zhou <zhouyanjing@hygon.cn>
Date: Wed, 15 May 2024 13:49:19 +0800
Subject: [PATCH] target/i386: Add Hygon Dhyana-v3 CPU model
Add the following feature bits for Dhyana CPU model:
perfctr-core, clzero, xsaveerptr, aes, pclmulqdq, sha-ni
Disable xsaves feature bit for Erratum 1386
Signed-off-by: Yanjing Zhou <zhouyanjing@hygon.cn>
---
target/i386/cpu.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/target/i386/cpu.c b/target/i386/cpu.c
index fd32c64f99..f4c22f32c6 100644
--- a/target/i386/cpu.c
+++ b/target/i386/cpu.c
@@ -4793,6 +4793,20 @@ static const X86CPUDefinition builtin_x86_defs[] = {
{ /* end of list */ }
},
},
+ { .version = 3,
+ .props = (PropValue[]) {
+ { "xsaves", "off" },
+ { "perfctr-core", "on" },
+ { "clzero", "on" },
+ { "xsaveerptr", "on" },
+ { "aes", "on" },
+ { "pclmulqdq", "on" },
+ { "sha-ni", "on" },
+ { "model-id",
+ "Hygon Dhyana-v3 processor" },
+ { /* end of list */ }
+ },
+ },
{ /* end of list */ }
}
},
--
2.41.0.windows.1
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/weishaokun/qemu_src.git
git@gitee.com:weishaokun/qemu_src.git
weishaokun
qemu_src
qemu_src
master

搜索帮助