Gentoo Archives: gentoo-dev

From: "Robin H. Johnson" <robbat2@g.o>
To: francis <francis.west@××××××××.com>, Gentoo Developers <gentoo-dev@l.g.o>
Subject: Re: [gentoo-dev] catalyst c3 addition
Date: Thu, 26 Feb 2004 01:57:38
Message-Id: 20040226013923.GB10147@curie-int.orbis-terrarum.net
In Reply to: [gentoo-dev] catalyst c3 addition by francis
1 On Thu, Feb 26, 2004 at 12:58:27AM +0000, francis wrote:
2 > Hello,
3 > I am somewhat new to gentoo, i've used catalyst to create some
4 > stage1/2/3 tar balls, however i have a c3 processor, I have had a look
5 > at {sharedir}/arch/x86.py, and thought it should be easy to create the
6 > addition of a C3 type
7 >
8 > i assume something like
9 >
10 > ...
11 > class arch_c3(generic_x86):
12 > def __init__(self,myspec):
13 > generic_x86.__init__(self,myspec)
14 > self.settings["CFLAGS"]="-march=i686 -mfpmath=sse -Os -pipe
15 > -fomit-frame-pointer"
16 > self.settings["CHOST"]="i686-pc-linux-gnu"
17 > self.settings["HOSTUSE"]=["mmx","sse"]
18 > and
19 Whoa! unless you want to break older C3 chips, don't use i686 in arch.
20 i686 implies the usage of the CMOV instruction, which the older C3s do
21 NOT have (this is why older i686+ stages used to cause problems on the
22 C3's). I also don't think the older C3's had sse, just MMX (my C3 is
23 powered down at the moment).
24
25 If you have gcc 3.3 or newer, -march=c3 is the way to go to avoid the
26 problem.
27
28 I'd strongly suggest having sub-classes of the C3, eg C3, C3-2. While
29 GCC3.3 doesn't have them, GCC3.4 does.
30
31 --
32 Robin Hugh Johnson
33 E-Mail : robbat2@××××××××××××××.net
34 Home Page : http://www.orbis-terrarum.net/?l=people.robbat2
35 ICQ# : 30269588 or 41961639
36 GnuPG FP : 11AC BA4F 4778 E3F6 E4ED F38E B27B 944E 3488 4E85