Source-Changes-HG archive

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

[src/netbsd-3]: src/sys/arch/sh3/include Pull up following revision(s) (reque...



details:   https://anonhg.NetBSD.org/src/rev/baccf6dea377
branches:  netbsd-3
changeset: 577712:baccf6dea377
user:      tron <tron%NetBSD.org@localhost>
date:      Wed Jan 11 13:54:13 2006 +0000

description:
Pull up following revision(s) (requested by uwe in ticket #1094):
        sys/arch/sh3/include/asm.h: revision 1.22
mova can only have r0 as destination, so PIC_PROLOGUE can not specify
an arbitrary temp register.

diffstat:

 sys/arch/sh3/include/asm.h |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (33 lines):

diff -r fb3b962d5562 -r baccf6dea377 sys/arch/sh3/include/asm.h
--- a/sys/arch/sh3/include/asm.h        Wed Jan 11 13:53:40 2006 +0000
+++ b/sys/arch/sh3/include/asm.h        Wed Jan 11 13:54:13 2006 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: asm.h,v 1.16.14.4 2006/01/11 13:53:40 tron Exp $       */
+/*     $NetBSD: asm.h,v 1.16.14.5 2006/01/11 13:54:13 tron Exp $       */
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -144,11 +144,11 @@
 #define        PIC_GOT(x)      x@GOT
 #define        PIC_GOTOFF(x)   x@GOTOFF
 
-#define        PIC_PROLOGUE(got, temp)                 \
+#define        PIC_PROLOGUE(got)                       \
                mov.l   r12, @-sp;              \
                mov.l   got, r12;               \
-               mova    got, temp;              \
-               add     temp, r12
+               mova    got, r0;                \
+               add     r0, r12
 
 #define        PIC_EPILOGUE                            \
                mov.l   @sp+, r12
@@ -172,7 +172,7 @@
 
 #else  /* !PIC */
 
-#define        PIC_PROLOGUE(label, temp)
+#define        PIC_PROLOGUE(label)
 #define        PIC_EPILOGUE
 #define PIC_GOT_DATUM
 



Home | Main Index | Thread Index | Old Index