[MIPS] Uses MIPS_CONF_AR instead of magic constants.
Signed-off-by: Thiemo Seufer <ths@networkno.de> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
committed by
Ralf Baechle
parent
31473747bd
commit
3a01c49ad8
@@ -459,7 +459,7 @@ static inline unsigned int decode_config0(struct cpuinfo_mips *c)
|
|||||||
isa = (config0 & MIPS_CONF_AT) >> 13;
|
isa = (config0 & MIPS_CONF_AT) >> 13;
|
||||||
switch (isa) {
|
switch (isa) {
|
||||||
case 0:
|
case 0:
|
||||||
switch ((config0 >> 10) & 7) {
|
switch ((config0 & MIPS_CONF_AR) >> 10) {
|
||||||
case 0:
|
case 0:
|
||||||
c->isa_level = MIPS_CPU_ISA_M32R1;
|
c->isa_level = MIPS_CPU_ISA_M32R1;
|
||||||
break;
|
break;
|
||||||
@@ -471,7 +471,7 @@ static inline unsigned int decode_config0(struct cpuinfo_mips *c)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
switch ((config0 >> 10) & 7) {
|
switch ((config0 & MIPS_CONF_AR) >> 10) {
|
||||||
case 0:
|
case 0:
|
||||||
c->isa_level = MIPS_CPU_ISA_M64R1;
|
c->isa_level = MIPS_CPU_ISA_M64R1;
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user