diff options
author | Visa Hankala <visa@cvs.openbsd.org> | 2016-12-17 11:51:03 +0000 |
---|---|---|
committer | Visa Hankala <visa@cvs.openbsd.org> | 2016-12-17 11:51:03 +0000 |
commit | f3cb7f0c535a5021146a2ea210372a07b9393a23 (patch) | |
tree | 9e2b950e8bf9ce50c848ebb3f35812bbf0aa4684 /sys | |
parent | bdb7cfa4d1d528237d2cdd434762213d1b4c4406 (diff) |
Make Octeon model strings a bit more specific. While there,
add CN70xx/CN71xx.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/mips64/include/cpu.h | 7 | ||||
-rw-r--r-- | sys/arch/mips64/mips64/cpu.c | 19 |
2 files changed, 18 insertions, 8 deletions
diff --git a/sys/arch/mips64/include/cpu.h b/sys/arch/mips64/include/cpu.h index 7eb47813237..9bc7d881548 100644 --- a/sys/arch/mips64/include/cpu.h +++ b/sys/arch/mips64/include/cpu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.h,v 1.112 2016/12/16 12:01:19 fcambus Exp $ */ +/* $OpenBSD: cpu.h,v 1.113 2016/12/17 11:51:01 visa Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -380,7 +380,7 @@ void cp0_calibrate(struct cpu_info *); #define MIPS_R4000 0x04 /* MIPS R4000/4400 CPU ISA III */ #define MIPS_R3LSI 0x05 /* LSI Logic R3000 derivate ISA I */ #define MIPS_R6000A 0x06 /* MIPS R6000A CPU ISA II */ -#define MIPS_OCTEON 0x06 /* Cavium OCTEON MIPS64R2*/ +#define MIPS_CN50XX 0x06 /* Cavium OCTEON CN50xx MIPS64R2*/ #define MIPS_R3IDT 0x07 /* IDT R3000 derivate ISA I */ #define MIPS_R10000 0x09 /* MIPS R10000/T5 CPU ISA IV */ #define MIPS_R4200 0x0a /* MIPS R4200 CPU (ICE) ISA III */ @@ -399,7 +399,8 @@ void cp0_calibrate(struct cpu_info *); #define MIPS_LOONGSON 0x42 /* STC LoongSon CPU ISA III */ #define MIPS_VR5400 0x54 /* NEC Vr5400 CPU ISA IV+ */ #define MIPS_LOONGSON2 0x63 /* STC LoongSon2/3 CPU ISA III+ */ -#define MIPS_OCTEON2 0x93 /* Cavium OCTEON II MIPS64R2 */ +#define MIPS_CN61XX 0x93 /* Cavium OCTEON II CN6[01]xx MIPS64R2 */ +#define MIPS_CN71XX 0x96 /* Cavium OCTEON III CN7[01]xx MIPS64R2 */ /* * MIPS FPU types. Only soft, rest is the same as cpu type. diff --git a/sys/arch/mips64/mips64/cpu.c b/sys/arch/mips64/mips64/cpu.c index 21573d2dbbb..857a8fe9afd 100644 --- a/sys/arch/mips64/mips64/cpu.c +++ b/sys/arch/mips64/mips64/cpu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.c,v 1.62 2016/10/27 13:19:27 visa Exp $ */ +/* $OpenBSD: cpu.c,v 1.63 2016/12/17 11:51:02 visa Exp $ */ /* * Copyright (c) 1997-2004 Opsycon AB (www.opsycon.se) @@ -211,14 +211,20 @@ cpuattach(struct device *parent, struct device *dev, void *aux) } displayver = 0; break; - case MIPS_OCTEON: - printf("Cavium OCTEON CPU"); + case MIPS_CN50XX: + printf("CN50xx CPU"); fptype = MIPS_SOFT; break; - case MIPS_OCTEON2: - printf("Cavium OCTEON II CPU"); + case MIPS_CN61XX: + if (ci->ci_l2.size < 1024 * 1024) + printf("CN60xx CPU"); + else + printf("CN61xx CPU"); fptype = MIPS_SOFT; break; + case MIPS_CN71XX: + printf("CN70xx/CN71xx CPU"); + break; default: printf("Unknown CPU type (0x%x)", ch->type); break; @@ -301,6 +307,9 @@ cpuattach(struct device *parent, struct device *dev, void *aux) } displayver = 0; break; + case MIPS_CN71XX: + printf("CN70xx/CN71xx FPU"); + break; default: printf("Unknown FPU type (0x%x)", fptype); break; |