diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2010-03-28 17:09:37 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2010-03-28 17:09:37 +0000 |
commit | f1f1681f8b08326af285acba4a1e3674c7760143 (patch) | |
tree | 209272096cf10a501eeca36dbfea60dc59438faa /sys/arch | |
parent | d9bbb78b94b439ea21cb75c0e7d408b161a52c8b (diff) |
Correctly report the R16010 version.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/mips64/mips64/cpu.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/arch/mips64/mips64/cpu.c b/sys/arch/mips64/mips64/cpu.c index dc9f2512fd5..f73e28e06b0 100644 --- a/sys/arch/mips64/mips64/cpu.c +++ b/sys/arch/mips64/mips64/cpu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.c,v 1.27 2010/02/28 18:01:39 miod Exp $ */ +/* $OpenBSD: cpu.c,v 1.28 2010/03/28 17:09:36 miod Exp $ */ /* * Copyright (c) 1997-2004 Opsycon AB (www.opsycon.se) @@ -202,6 +202,7 @@ cpuattach(struct device *parent, struct device *dev, void *aux) switch (fptype) { case MIPS_SOFT: printf("Software FP emulation"); + displayver = 0; break; case MIPS_R4000: printf("R4010 FPC"); @@ -213,7 +214,12 @@ cpuattach(struct device *parent, struct device *dev, void *aux) printf("R12000 FPU"); break; case MIPS_R14000: - printf("R1%d000 FPU", isr16k ? 6 : 4); + if (isr16k) { + if (ch->c0prid == ch->c1prid) + vers_maj -= 2; + printf("R16000 FPU"); + } else + printf("R14000 FPU"); break; case MIPS_R4200: printf("VR4200 FPC (ICE)"); |