Blob Blame History Raw
From 4a415a6725fd88e9219e6af92dcdaf88e0dff36e Mon Sep 17 00:00:00 2001
From: hygonsoc <hygonsoc@gmail.com>
Date: Wed, 26 Dec 2018 00:08:00 +0800
Subject: [PATCH 6/8] add Hygon company description for Hygon CPU VendorID
 checking

---
 src/core/cpuinfo.cc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/core/cpuinfo.cc b/src/core/cpuinfo.cc
index 8a72d985f57c..33085fda1159 100644
--- a/src/core/cpuinfo.cc
+++ b/src/core/cpuinfo.cc
@@ -455,6 +455,8 @@ string value)
     {
       if (value == "AuthenticAMD")
         value = "Advanced Micro Devices [AMD]";
+      if (value == "HygonGenuine")
+        value = "Hygon";
       if (value == "GenuineIntel")
         value = "Intel Corp.";
       cpu->setVendor(value);
-- 
2.17.1