NetBSD-Bugs archive

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

port-evbppc/40289: gcc -mcpu=405 is better for PowerPC 405GP(r)



>Number:         40289
>Category:       port-evbppc
>Synopsis:       gcc -mcpu=405 is better for PowerPC 405GP(r)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    port-evbppc-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Dec 29 14:30:00 +0000 2008
>Originator:     FUKAUMI Naoki
>Release:        NetBSD 5.0_BETA
>Organization:
        FUKAUMI Naoki
>Environment:
NetBSD 5.0_BETA (OPENBLOCKS266) #0: Sun Dec 28 20:35:53 JST 2008
Model: OpenBlockS266 IBM PowerPC 405GPr Board
>Description:
        gcc -mcpu=403 option is used for some evbppc kernel. but
        -mcpu=405 is better for PowerPC 405GP(r).

        OpenBlockS266 has 405GPr.

$ grep -- -mcpu=403 src/sys/arch/evbppc/conf/*
src/sys/arch/evbppc/conf/Makefile.explora.inc:CFLAGS+=-mcpu=403
src/sys/arch/evbppc/conf/Makefile.explora.inc:AFLAGS+=-mcpu=403
src/sys/arch/evbppc/conf/Makefile.obs200.inc:CFLAGS+=-mcpu=403
src/sys/arch/evbppc/conf/Makefile.obs200.inc:AFLAGS+=-mcpu=403
src/sys/arch/evbppc/conf/Makefile.obs405.inc:CFLAGS+=-mcpu=403
src/sys/arch/evbppc/conf/Makefile.obs405.inc:AFLAGS+=-mcpu=403
src/sys/arch/evbppc/conf/Makefile.virtex.inc:CFLAGS+=-mcpu=403
src/sys/arch/evbppc/conf/Makefile.virtex.inc:AFLAGS+=-mcpu=403
src/sys/arch/evbppc/conf/Makefile.walnut.inc:CFLAGS+=-mcpu=403
src/sys/arch/evbppc/conf/Makefile.walnut.inc:AFLAGS+=-mcpu=403
>How-To-Repeat:
>Fix:
        This is for OPENBLOCKS266 kernels.

Index: sys/arch/evbppc/conf/Makefile.obs405.inc
===================================================================
RCS file: 
/home/fun/cvsroot/NetBSD/src/sys/arch/evbppc/conf/Makefile.obs405.inc,v
retrieving revision 1.3
diff -u -p -r1.3 Makefile.obs405.inc
--- sys/arch/evbppc/conf/Makefile.obs405.inc    24 Nov 2005 12:54:29 -0000      
1.3
+++ sys/arch/evbppc/conf/Makefile.obs405.inc    26 Dec 2008 07:33:48 -0000
@@ -2,8 +2,8 @@
 
 MKIMG?=        ${HOST_SH} ${THISPPC}/compile/walnut-mkimg.sh
 
-CFLAGS+=-mcpu=403
-AFLAGS+=-mcpu=403
+CFLAGS+=-mcpu=405
+AFLAGS+=-mcpu=405
 TEXTADDR?=     25000
 
 SYSTEM_FIRST_OBJ=      locore.o



Home | Main Index | Thread Index | Old Index