Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hppa/hppa Remove unnecessary cache flushes.



details:   https://anonhg.NetBSD.org/src/rev/cc2c0c4232de
branches:  trunk
changeset: 778610:cc2c0c4232de
user:      skrll <skrll%NetBSD.org@localhost>
date:      Fri Apr 06 13:09:32 2012 +0000

description:
Remove unnecessary cache flushes.

FP regs are stored in memory from a pool which is direct mapped and
therefore available in virtual and physical modes.

diffstat:

 sys/arch/hppa/hppa/trap.S |  27 +--------------------------
 1 files changed, 1 insertions(+), 26 deletions(-)

diffs (48 lines):

diff -r d9439c23e008 -r cc2c0c4232de sys/arch/hppa/hppa/trap.S
--- a/sys/arch/hppa/hppa/trap.S Fri Apr 06 12:21:58 2012 +0000
+++ b/sys/arch/hppa/hppa/trap.S Fri Apr 06 13:09:32 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: trap.S,v 1.66 2012/04/06 12:21:59 skrll Exp $  */
+/*     $NetBSD: trap.S,v 1.67 2012/04/06 13:09:32 skrll Exp $  */
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -1094,19 +1094,6 @@
        fstds,ma %fr30, 8(%arg0)
        fstds    %fr31, 0(%arg0)
 
-       ldo     -248(%arg0), %arg0
-       ldil    L%dcache_stride, %r1
-       ldw     R%dcache_stride(%r1), %r1
-       fdc,m   %r1(%arg0)
-       fdc,m   %r1(%arg0)
-       fdc,m   %r1(%arg0)
-       fdc,m   %r1(%arg0)
-       fdc,m   %r1(%arg0)
-       fdc,m   %r1(%arg0)
-       fdc,m   %r1(%arg0)
-       fdc,m   %r1(%arg0)
-       sync
-
 L$fpu_swap_in:
 
        /*
@@ -1160,18 +1147,6 @@
        fldds,ma -8(%arg1), %fr1
        fldds     0(%arg1), %fr0        /* fr0 must be restored last */
 
-       ldil    L%dcache_stride, %r1
-       ldw     R%dcache_stride(%r1), %r1
-       fdc,m   %r1(%arg1)
-       fdc,m   %r1(%arg1)
-       fdc,m   %r1(%arg1)
-       fdc,m   %r1(%arg1)
-       fdc,m   %r1(%arg1)
-       fdc,m   %r1(%arg1)
-       fdc,m   %r1(%arg1)
-       fdc,m   %r1(%arg1)
-       sync
-
 L$fpu_swap_done:
 
        /* Increment the switch count and return. */



Home | Main Index | Thread Index | Old Index