Source-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/src/rev/543578cafe0a
branches:  trunk
changeset: 331282:543578cafe0a
user:      joerg <joerg%NetBSD.org@localhost>
date:      Thu Aug 07 09:06:53 2014 +0000

description:
Use cmpwi.

diffstat:

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

diffs (31 lines):

diff -r fd74b00de94c -r 543578cafe0a sys/arch/prep/prep/locore.S
--- a/sys/arch/prep/prep/locore.S       Thu Aug 07 08:59:42 2014 +0000
+++ b/sys/arch/prep/prep/locore.S       Thu Aug 07 09:06:53 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.S,v 1.18 2011/06/20 19:56:12 matt Exp $ */
+/*     $NetBSD: locore.S,v 1.19 2014/08/07 09:06:53 joerg Exp $        */
 /*     $OpenBSD: locore.S,v 1.4 1997/01/26 09:06:38 rahnds Exp $       */
 
 /*
@@ -120,7 +120,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
@@ -135,9 +135,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