Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/mips/include switch mfc0_hazard to be superscalar n...



details:   https://anonhg.NetBSD.org/src/rev/43a0aa351d83
branches:  trunk
changeset: 818996:43a0aa351d83
user:      maya <maya%NetBSD.org@localhost>
date:      Fri Nov 11 16:41:32 2016 +0000

description:
switch mfc0_hazard to be superscalar nop, some mips3 are superscalar
and need this to do the right thing

diffstat:

 sys/arch/mips/include/asm.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 3ce48e80f56c -r 43a0aa351d83 sys/arch/mips/include/asm.h
--- a/sys/arch/mips/include/asm.h       Fri Nov 11 16:07:05 2016 +0000
+++ b/sys/arch/mips/include/asm.h       Fri Nov 11 16:41:32 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: asm.h,v 1.52 2016/11/09 11:50:09 maya Exp $    */
+/*     $NetBSD: asm.h,v 1.53 2016/11/11 16:41:32 maya Exp $    */
 
 /*
  * Copyright (c) 1992, 1993
@@ -512,7 +512,7 @@
 
 /* CPU dependent hook for cp0 load delays */
 #if defined(MIPS1) || defined(MIPS2) || defined(MIPS3)
-#define MFC0_HAZARD    nop
+#define MFC0_HAZARD    sll $0,$0,1     /* super scalar nop */
 #else
 #define MFC0_HAZARD    /* nothing */
 #endif



Home | Main Index | Thread Index | Old Index