Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/arm32 Reduce stalls on StrongARM and XScale by ...



details:   https://anonhg.NetBSD.org/src/rev/bce2a9ed2a9d
branches:  trunk
changeset: 535058:bce2a9ed2a9d
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Fri Aug 09 06:18:24 2002 +0000

description:
Reduce stalls on StrongARM and XScale by waiting one insn before using
the result of a load.

diffstat:

 sys/arch/arm/arm32/copystr.S |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (42 lines):

diff -r a118572616e8 -r bce2a9ed2a9d sys/arch/arm/arm32/copystr.S
--- a/sys/arch/arm/arm32/copystr.S      Fri Aug 09 06:03:02 2002 +0000
+++ b/sys/arch/arm/arm32/copystr.S      Fri Aug 09 06:18:24 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: copystr.S,v 1.4 2002/08/09 06:03:02 thorpej Exp $      */
+/*     $NetBSD: copystr.S,v 1.5 2002/08/09 06:18:24 thorpej Exp $      */
 
 /*
  * Copyright (c) 1995 Mark Brinicombe.
@@ -63,9 +63,9 @@
        beq     2f
 
 1:     ldrb    r4, [r0], #0x0001
-       strb    r4, [r1], #0x0001
        add     r5, r5, #0x00000001
        teq     r4, #0x00000000
+       strb    r4, [r1], #0x0001
        teqne   r5, r2
        bne     1b
 
@@ -108,9 +108,9 @@
        str     r5, [r4, #PCB_ONFAULT]
 
 1:     ldrbt   r5, [r0], #0x0001
-       strb    r5, [r1], #0x0001
        add     r6, r6, #0x00000001
        teq     r5, #0x00000000
+       strb    r5, [r1], #0x0001
        teqne   r6, r2
        bne     1b
 
@@ -155,9 +155,9 @@
        str     r5, [r4, #PCB_ONFAULT]
 
 1:     ldrb    r5, [r0], #0x0001
-       strbt   r5, [r1], #0x0001
        add     r6, r6, #0x00000001
        teq     r5, #0x00000000
+       strbt   r5, [r1], #0x0001
        teqne   r6, r2
        bne     1b
 



Home | Main Index | Thread Index | Old Index