pc: fix ugly and partially broken switch() statement
This commit is contained in:
parent
3a77c01f43
commit
6b0de3de8e
1 changed files with 5 additions and 3 deletions
|
@ -758,11 +758,13 @@ cpuidentify(void)
|
|||
m->cpuidmodel = m->cpuidax >> 4 & 0xf;
|
||||
m->cpuidstepping = m->cpuidax & 0xf;
|
||||
switch(m->cpuidfamily){
|
||||
case 6:
|
||||
m->cpuidmodel += m->cpuidax >> 16 & 0xf;
|
||||
/* wet floor */
|
||||
case 15:
|
||||
m->cpuidfamily += m->cpuidax >> 20 & 0xff;
|
||||
m->cpuidmodel += m->cpuidax >> 16 & 0xf;
|
||||
break;
|
||||
case 6:
|
||||
m->cpuidmodel += m->cpuidax >> 16 & 0xf;
|
||||
break;
|
||||
}
|
||||
|
||||
if(strncmp(m->cpuidid, "AuthenticAMD", 12) == 0 ||
|
||||
|
|
Loading…
Reference in a new issue