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 Fix register usage in the swap operation ...



details:   https://anonhg.NetBSD.org/src/rev/15333492ff50
branches:  trunk
changeset: 346866:15333492ff50
user:      skrll <skrll%NetBSD.org@localhost>
date:      Fri Aug 05 15:39:09 2016 +0000

description:
Fix register usage in the swap operation in tlb_update_addr.

This should help LOONGSON and hpcmips

diffstat:

 sys/arch/mips/mips/mipsX_subr.S |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 78d920dfbc72 -r 15333492ff50 sys/arch/mips/mips/mipsX_subr.S
--- a/sys/arch/mips/mips/mipsX_subr.S   Fri Aug 05 15:35:32 2016 +0000
+++ b/sys/arch/mips/mips/mipsX_subr.S   Fri Aug 05 15:39:09 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mipsX_subr.S,v 1.79 2016/08/05 15:35:32 skrll Exp $    */
+/*     $NetBSD: mipsX_subr.S,v 1.80 2016/08/05 15:39:09 skrll Exp $    */
 
 /*
  * Copyright 2002 Wasabi Systems, Inc.
@@ -2164,7 +2164,7 @@
         nop
        move    t3, a2                          # swap a2 and t0
        move    a2, t0                          #
-       move    t0, a3                          #
+       move    t0, t3                          #
 4:
        _MTC0   t0, MIPS_COP_0_TLB_LO0          # init low reg0.
        _MTC0   a2, MIPS_COP_0_TLB_LO1          # init low reg1.



Home | Main Index | Thread Index | Old Index