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 possible load delay hazard on R3000.



details:   https://anonhg.NetBSD.org/src/rev/641dc0f87317
branches:  trunk
changeset: 763298:641dc0f87317
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Wed Mar 16 14:54:31 2011 +0000

description:
Fix possible load delay hazard on R3000.
(probably no one has set breakpoint on R3000?)

diffstat:

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

diffs (19 lines):

diff -r f4cdfc9aa6d8 -r 641dc0f87317 sys/arch/mips/mips/copy.S
--- a/sys/arch/mips/mips/copy.S Wed Mar 16 14:47:34 2011 +0000
+++ b/sys/arch/mips/mips/copy.S Wed Mar 16 14:54:31 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: copy.S,v 1.10 2010/07/07 01:21:47 chs Exp $    */
+/*     $NetBSD: copy.S,v 1.11 2011/03/16 14:54:31 tsutsui Exp $        */
 
 /*
  * Copyright (c) 1992, 1993
@@ -482,8 +482,8 @@
         PTR_S  v0, PCB_ONFAULT(v1)
        INT_S   a1, 0(a0)                       # store word
        PTR_S   zero, PCB_ONFAULT(v1)
+       PTR_L   v1, _C_LABEL(mips_cache_ops) + MIPSX_FLUSHICACHE
        move    v0, zero
-       PTR_L   v1, _C_LABEL(mips_cache_ops) + MIPSX_FLUSHICACHE
        j       v1                              # NOTE: must not clobber v0!
         li     a1, 4                           # size of word
 END(ustore_uint32_isync)



Home | Main Index | Thread Index | Old Index