From 139032d223f4fc42492ec6182c5482925d22937a Mon Sep 17 00:00:00 2001 From: Stas Degteff Date: Thu, 27 Oct 2005 16:23:43 +0000 Subject: [PATCH] TransMeta CPU detection --- goldlib/gall/gutlvers.cpp | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/goldlib/gall/gutlvers.cpp b/goldlib/gall/gutlvers.cpp index fb7634c..117080c 100644 --- a/goldlib/gall/gutlvers.cpp +++ b/goldlib/gall/gutlvers.cpp @@ -257,9 +257,27 @@ static void cpuname(int family, int model, const char *v_name, char *m_name) sprintf(m_name, "iF%dM%d", family, model); } } + else if (!strcmp("GenuineTMx86", v_name)) + { + switch (family) + { + case 15: + switch(model){ + case 2: // Transmeta Efficeon(tm) Processor TM8000 + sprintf(m_name, "TM8000", family, model); + break; + default: + sprintf(m_name, "TM F%dM%d", family, model); + } + break; + default: + sprintf(m_name, "TM F%dM%d", family, model); + } + } else if (!strcmp("CyrixInstead", v_name)) sprintf(m_name, "CyrF%dM%d", family, model); - else if (!strcmp("CentaurHauls", v_name)) { + else if (!strcmp("CentaurHauls", v_name)) + { switch (family) { case 6: @@ -268,7 +286,9 @@ static void cpuname(int family, int model, const char *v_name, char *m_name) default: sprintf(m_name, "VIA F%dM%d", family, model); } - }else{ + } + else + { if (model) { sprintf(m_name, "CPU %3s-F%dM%d", v_name, family, model); }else{