Dont overwrite cpu_model in the case of Via's C3-CPU.

Noticed by:  Mike Tancsa
MFC after:	2 days
This commit is contained in:
Michael Reifenberger 2006-08-04 13:49:16 +00:00
parent c93b8edf09
commit 0b2aa43a65
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=160970

View File

@ -586,9 +586,10 @@ printcpuinfo(void)
strcpy(cpu_model, "VIA C3 Nehemiah");
if ((cpu_id & 0xf) < 3)
break;
/* fall through. */
goto via_common;
case 0x6a0:
strcpy(cpu_model, "VIA C7 Esther");
via_common:
do_cpuid(0xc0000000, regs);
i = regs[0];
if (i >= 0xC0000001) {