Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sh3/sh3 Revert part of the previous (reverting RUN_...



details:   https://anonhg.NetBSD.org/src/rev/444b14b1e967
branches:  trunk
changeset: 783257:444b14b1e967
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Wed Dec 12 15:43:44 2012 +0000

description:
Revert part of the previous (reverting RUN_P1 -> PAD_P1_SWITCH again).
We can assume all icache ops are called from (and will return to) P1
so no need to bother to jump to P1 at end of functions.
Pointed out by uwe@.

diffstat:

 sys/arch/sh3/sh3/cache_sh4.c |  14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diffs (63 lines):

diff -r b2830fea23f0 -r 444b14b1e967 sys/arch/sh3/sh3/cache_sh4.c
--- a/sys/arch/sh3/sh3/cache_sh4.c      Wed Dec 12 15:20:44 2012 +0000
+++ b/sys/arch/sh3/sh3/cache_sh4.c      Wed Dec 12 15:43:44 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cache_sh4.c,v 1.21 2012/12/12 13:34:49 tsutsui Exp $   */
+/*     $NetBSD: cache_sh4.c,v 1.22 2012/12/12 15:43:44 tsutsui Exp $   */
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cache_sh4.c,v 1.21 2012/12/12 13:34:49 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cache_sh4.c,v 1.22 2012/12/12 15:43:44 tsutsui Exp $");
 
 #include "opt_cache.h"
 
@@ -230,7 +230,7 @@
                cache_sh4_op_8lines_32(va, SH4_CCIA, CCIA_ENTRY_MASK, CCIA_V);
                va += 32 * 8;
        }
-       RUN_P1;
+       PAD_P1_SWITCH;
 }
 
 void
@@ -249,7 +249,7 @@
                _reg_write_4(ccia, va & CCIA_TAGADDR_MASK); /* V = 0 */
                va += 32;
        }
-       RUN_P1;
+       PAD_P1_SWITCH;
 }
 
 void
@@ -271,7 +271,7 @@
                cache_sh4_op_line_32(va, SH4_CCIA, CCIA_ENTRY_MASK, CCIA_V);
                va += 32;
        }
-       RUN_P1;
+       PAD_P1_SWITCH;
 }
 
 void
@@ -421,7 +421,7 @@
                    CCIA_V, 13);
                va += 32 * 8;
        }
-       RUN_P1;
+       PAD_P1_SWITCH;
 }
 
 void
@@ -444,7 +444,7 @@
                    CCIA_V, 13);
                va += 32;
        }
-       RUN_P1;
+       PAD_P1_SWITCH;
 }
 
 void



Home | Main Index | Thread Index | Old Index