Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-6]: src/sys/arch Pull up following revision(s) (requested by mrg ...



details:   https://anonhg.NetBSD.org/src/rev/f133f96fa633
branches:  netbsd-6
changeset: 777249:f133f96fa633
user:      martin <martin%NetBSD.org@localhost>
date:      Thu Aug 31 15:18:12 2017 +0000

description:
Pull up following revision(s) (requested by mrg in ticket #1499):
        sys/arch/evbmips/conf/MALTA64: revision 1.8
        sys/arch/evbmips/conf/MALTA32: revision 1.4
        sys/arch/mips/mips/bds_emul.S: revision 1.9
        sys/arch/evbmips/conf/MALTA: revision 1.88
Re-enable the NOFPU and (renamed) FPEMUL options.  None of the Malta
CPU daughter cards currently supported by NetBSD have an FPU.
Detected on real hardware.  gxemul wrongly supports an FPU on the
4Kc and 5Kc CPUs.
Remove the NOFPU option.  The main MALTA config file has this now.
mips_emul_daddi and mips_emul_daddiu don't exist, but there are
bcemul_daddi and bcemul_daddiu here that should be used.  however,
bcemul_daddi needed to be changed to use dadd not daddui.
fixes FPEMUL and N64 kernels.  ok simonb.

diffstat:

 sys/arch/evbmips/conf/MALTA   |  9 +++++----
 sys/arch/evbmips/conf/MALTA32 |  3 +--
 sys/arch/evbmips/conf/MALTA64 |  3 +--
 sys/arch/mips/mips/bds_emul.S |  8 ++++----
 4 files changed, 11 insertions(+), 12 deletions(-)

diffs (87 lines):

diff -r df3136be7588 -r f133f96fa633 sys/arch/evbmips/conf/MALTA
--- a/sys/arch/evbmips/conf/MALTA       Thu Aug 31 15:14:56 2017 +0000
+++ b/sys/arch/evbmips/conf/MALTA       Thu Aug 31 15:18:12 2017 +0000
@@ -1,17 +1,18 @@
-#      $NetBSD: MALTA,v 1.65.2.1 2012/09/17 18:40:12 riz Exp $
+#      $NetBSD: MALTA,v 1.65.2.2 2017/08/31 15:18:12 martin Exp $
 
 include        "arch/evbmips/conf/std.malta"
 
 #options       INCLUDE_CONFIG_FILE     # embed config file in kernel binary
 
-#ident                 "MALTA-$Revision: 1.65.2.1 $"
+#ident                 "MALTA-$Revision: 1.65.2.2 $"
 
 maxusers       32
 
 options        MIPS32
 options        MIPS64
-#options       NOFPU           # No FPU
-#options       FPEMUL          # emulate FPU insn
+
+options        NOFPU           # No FPU
+options        FPEMUL          # emulate FPU insn
 
 # Options for necessary to use MD
 # options      MEMORY_DISK_HOOKS
diff -r df3136be7588 -r f133f96fa633 sys/arch/evbmips/conf/MALTA32
--- a/sys/arch/evbmips/conf/MALTA32     Thu Aug 31 15:14:56 2017 +0000
+++ b/sys/arch/evbmips/conf/MALTA32     Thu Aug 31 15:18:12 2017 +0000
@@ -1,11 +1,10 @@
-# $NetBSD: MALTA32,v 1.3 2012/02/09 18:58:44 matt Exp $
+# $NetBSD: MALTA32,v 1.3.2.1 2017/08/31 15:18:12 martin Exp $
 #
 include "arch/evbmips/conf/MALTA"
 
 makeoptions    LP64="no"
 
 no options     MIPS32
-options        NOFPU           # No FPU
 #options       EXEC_ELF64
 
 no ath*
diff -r df3136be7588 -r f133f96fa633 sys/arch/evbmips/conf/MALTA64
--- a/sys/arch/evbmips/conf/MALTA64     Thu Aug 31 15:14:56 2017 +0000
+++ b/sys/arch/evbmips/conf/MALTA64     Thu Aug 31 15:18:12 2017 +0000
@@ -1,11 +1,10 @@
-# $NetBSD: MALTA64,v 1.5.2.1 2012/10/13 06:15:23 riz Exp $
+# $NetBSD: MALTA64,v 1.5.2.2 2017/08/31 15:18:12 martin Exp $
 #
 include "arch/evbmips/conf/MALTA"
 
 makeoptions    LP64="yes"
 
 no options     MIPS32
-options        NOFPU                   # No FPU
 options        EXEC_ELF64
 options        COMPAT_NETBSD32
 no options     SYMTAB_SPACE
diff -r df3136be7588 -r f133f96fa633 sys/arch/mips/mips/bds_emul.S
--- a/sys/arch/mips/mips/bds_emul.S     Thu Aug 31 15:14:56 2017 +0000
+++ b/sys/arch/mips/mips/bds_emul.S     Thu Aug 31 15:18:12 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bds_emul.S,v 1.6 2011/12/25 11:51:15 kiyohara Exp $    */
+/*     $NetBSD: bds_emul.S,v 1.6.2.1 2017/08/31 15:18:12 martin Exp $  */
 
 /*
  * Copyright (c) 1992, 1993
@@ -101,8 +101,8 @@
        PTR_WORD bcemul_sigill                  # 030 LDL (*)
        PTR_WORD bcemul_sigill                  # 031 LDR (*)
 #else
-       PTR_WORD _C_LABEL(mips_emul_daddi)      # 030 DADDI (*)
-       PTR_WORD _C_LABEL(mips_emul_daddiu)     # 031 DADDIU (*)
+       PTR_WORD bcemul_daddi                   # 030 DADDI (*)
+       PTR_WORD bcemul_daddiu                  # 031 DADDIU (*)
        PTR_WORD _C_LABEL(mips_emul_ldl)        # 032 LDL (*)
        PTR_WORD _C_LABEL(mips_emul_ldr)        # 033 LDR (*)
 #endif
@@ -191,7 +191,7 @@
 #ifndef __mips_o32
 bcemul_daddi:
        bal     bcemul_immed_prologue
-       daddiu  t0, v0, v1
+       dadd    t0, v0, v1
        b       bcemul_check_add_overflow
 #endif
 



Home | Main Index | Thread Index | Old Index