[babl] add Hygon Dhyana support in arch_get_vendor



commit c8f928bd661b6407d092f82986a2efcc04d1a360
Author: hygonsoc <hygonsoc gmail com>
Date:   Fri May 3 02:36:36 2019 +0800

    add Hygon Dhyana support in arch_get_vendor
    
    Signed-off-by: hygonsoc <hygonsoc gmail com>

 babl/babl-cpuaccel.c | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/babl/babl-cpuaccel.c b/babl/babl-cpuaccel.c
index e048c97..534fa89 100644
--- a/babl/babl-cpuaccel.c
+++ b/babl/babl-cpuaccel.c
@@ -92,6 +92,7 @@ typedef enum
   ARCH_X86_VENDOR_RISE,
   ARCH_X86_VENDOR_UMC,
   ARCH_X86_VENDOR_SIS,
+  ARCH_X86_VENDOR_HYGON,
   ARCH_X86_VENDOR_UNKNOWN    = 0xff
 } X86Vendor;
 
@@ -185,6 +186,8 @@ arch_get_vendor (void)
 #ifdef ARCH_X86_64
   if (strcmp (id, "AuthenticAMD") == 0)
     return ARCH_X86_VENDOR_AMD;
+  else if (strcmp (id, "HygonGenuine") == 0)
+    return ARCH_X86_VENDOR_HYGON;
   else if (strcmp (id, "GenuineIntel") == 0)
     return ARCH_X86_VENDOR_INTEL;
 #else
@@ -192,6 +195,8 @@ arch_get_vendor (void)
     return ARCH_X86_VENDOR_INTEL;
   else if (strcmp (id, "AuthenticAMD") == 0)
     return ARCH_X86_VENDOR_AMD;
+  else if (strcmp (id, "HygonGenuine") == 0)
+    return ARCH_X86_VENDOR_HYGON;
   else if (strcmp (id, "CentaurHauls") == 0)
     return ARCH_X86_VENDOR_CENTAUR;
   else if (strcmp (id, "CyrixInstead") == 0)
@@ -393,6 +398,7 @@ arch_accel (void)
       break;
 
     case ARCH_X86_VENDOR_AMD:
+    case ARCH_X86_VENDOR_HYGON:
       caps = arch_accel_amd ();
       break;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]