Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/mips/mips Make sure to pass cause as the 3rd arg to...



details:   https://anonhg.NetBSD.org/src/rev/2d154656ba2b
branches:  trunk
changeset: 762412:2d154656ba2b
user:      matt <matt%NetBSD.org@localhost>
date:      Sun Feb 20 16:58:33 2011 +0000

description:
Make sure to pass cause as the 3rd arg to mips_emul_fp

diffstat:

 sys/arch/mips/mips/locore.S |  8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diffs (33 lines):

diff -r 6f387eb7d890 -r 2d154656ba2b sys/arch/mips/mips/locore.S
--- a/sys/arch/mips/mips/locore.S       Sun Feb 20 16:38:13 2011 +0000
+++ b/sys/arch/mips/mips/locore.S       Sun Feb 20 16:58:33 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.S,v 1.176 2011/02/20 07:45:47 matt Exp $        */
+/*     $NetBSD: locore.S,v 1.177 2011/02/20 16:58:33 matt Exp $        */
 
 /*
  * Copyright (c) 1992, 1993
@@ -610,7 +610,7 @@
        COP0_HAZARD_FPUENABLE
 
        REG_PROLOGUE
-       REG_L           t3, TF_REG_CAUSE(a1)
+       REG_L           a2, TF_REG_CAUSE(a1)
        REG_EPILOGUE
 
        cfc1            t0, MIPS_FPU_CSR        # stall til FP done
@@ -629,13 +629,11 @@
  *
  * fetch the instruction and emulate the instruction.
  */
-       bgez            t3, 1f                  # Check the branch delay bit.
+       bgez            a2, 1f                  # Check the branch delay bit.
         nop
 /*
  * The instruction is in the branch delay slot.
  */
-       move            a2, a0                  # 3rd arg is opcode address
-
        b               2f
         INT_L          a0, 4(a0)               # a0 = coproc instruction
 /*



Home | Main Index | Thread Index | Old Index