Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/rs6000/rs6000 Use cmpwi.



details:   https://anonhg.NetBSD.org/src/rev/f8a53eaaa2a7
branches:  trunk
changeset: 798025:f8a53eaaa2a7
user:      joerg <joerg%NetBSD.org@localhost>
date:      Wed Aug 06 15:38:07 2014 +0000

description:
Use cmpwi.

diffstat:

 sys/arch/rs6000/rs6000/locore.S |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (31 lines):

diff -r 9bb3bfcdaa0d -r f8a53eaaa2a7 sys/arch/rs6000/rs6000/locore.S
--- a/sys/arch/rs6000/rs6000/locore.S   Wed Aug 06 15:23:48 2014 +0000
+++ b/sys/arch/rs6000/rs6000/locore.S   Wed Aug 06 15:38:07 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.S,v 1.10 2011/06/20 19:56:13 matt Exp $ */
+/*     $NetBSD: locore.S,v 1.11 2014/08/06 15:38:07 joerg Exp $        */
 /*     $OpenBSD: locore.S,v 1.4 1997/01/26 09:06:38 rahnds Exp $       */
 
 /*
@@ -125,7 +125,7 @@
 /* enable internal i/d-cache */
        mfpvr   9
        rlwinm  9,9,16,16,31
-       cmpi    0,9,1
+       cmpwi   %r9,1
        beq     3f                      /* not needed for 601 */
        mfspr   11,SPR_HID0
        andi.   0,11,HID0_DCE
@@ -140,9 +140,9 @@
        mtspr   SPR_HID0,11             /* enable caches */
        sync
        isync
-       cmpi    0,9,4                   /* check for 604 */
-       cmpi    1,9,9                   /* or 604e */
-       cmpi    2,9,10                  /* or mach5 */
+       cmpwi   %r9,4                   /* check for 604 */
+       cmpwi   %cr1,%r9,9              /* or 604e */
+       cmpwi   %cr2,%r9,10             /* or mach5 */
        cror    2,2,6
        cror    2,2,10
        bne     3f



Home | Main Index | Thread Index | Old Index