Re: Adding Leon processor to the SPARC list of processors

2011-01-13 Thread David Paterson
--- On Wed, 12/1/11, Joel Sherrill wrote: > From: Joel Sherrill > Subject: Re: Adding Leon processor to the SPARC list of processors > To: "David Paterson" > Cc: "gcc@gcc.gnu.org" > Date: Wednesday, 12 January, 2011, 16:31 > On 01/12/2011 09:17

Re: Adding Leon processor to the SPARC list of processors

2011-01-12 Thread Joel Sherrill
On 01/12/2011 09:17 AM, David Paterson wrote: Hi all, I'm in the early stages of a Leon-based project, and have been trying to put together a cross toolchain for it. I'm having some problems getting it configured and working correctly, and this proposed option would very likely help me a lot

Re: Adding Leon processor to the SPARC list of processors

2011-01-12 Thread David Paterson
Hi all, I'm in the early stages of a Leon-based project, and have been trying to put together a cross toolchain for it. I'm having some problems getting it configured and working correctly, and this proposed option would very likely help me a lot. Is there any time scale for implementation, o

Re: Adding Leon processor to the SPARC list of processors

2010-11-25 Thread konrad
On Thu, 25 Nov 2010 22:57:19 0100, Eric Botcazou wrote: Sorry, I didnt note the attachment that is already your implementation. > > I thought it was the old diff. > > So: I'm ok with all. Thanks for the effort. > > OK, thanks. I'm going to conduct a bit more testing before installing it

Re: Adding Leon processor to the SPARC list of processors

2010-11-25 Thread Eric Botcazou
> Sorry, I didnt note the attachment that is already your implementation. > I thought it was the old diff. > So: I'm ok with all. Thanks for the effort. OK, thanks. I'm going to conduct a bit more testing before installing it. What are the contributors to the patch? This is for the ChangeLog.

Re: Adding Leon processor to the SPARC list of processors

2010-11-24 Thread Konrad Eisele
> Is the list above an indication that you are already finished with > the modifications? :-) > Can you give me a note, otherwise I'll create a new patch that implements > the scheme you suggested. > Sorry, I didnt note the attachment that is already your implementation. I thought it was the ol

Re: Adding Leon processor to the SPARC list of processors

2010-11-24 Thread Konrad Eisele
Eric Botcazou wrote: >> Following the recent comments by Eric, the patch now sketches the >> following setup: >> >> If multi-lib is wanted: >> configure --with-cpu=leon ... : creates multilib-dir soft|v8 >> combinations using [-msoft-float|-mcpu=sparcleonv8] (MULTILIB_OPTIONS = >> msoft-fl

Re: Adding Leon processor to the SPARC list of processors

2010-11-23 Thread Eric Botcazou
> Following the recent comments by Eric, the patch now sketches the > following setup: > > If multi-lib is wanted: > configure --with-cpu=leon ... : creates multilib-dir soft|v8 > combinations using [-msoft-float|-mcpu=sparcleonv8] (MULTILIB_OPTIONS = > msoft-float mcpu=sparcleonv8) > > If

Re: Adding Leon processor to the SPARC list of processors

2010-11-22 Thread Konrad Eisele
Hi, Appended is a new patch, this time against svn://gcc.gnu.org/svn/gcc/trunk. Following the recent comments by Eric, the patch now sketches the following setup: If multi-lib is wanted: configure --with-cpu=leon ... : creates multilib-dir soft|v8 combinations using [-msoft-float|-mcpu=

Re: Adding Leon processor to the SPARC list of processors

2010-11-22 Thread Konrad Eisele
Eric Botcazou wrote: >> CONFIG_FPU_ENABLE Y/N would correspond to --with-float=hard/soft, and >> I believe setting CONFIG_IU_V8MULDIV to Y/N requires --with-cpu=V8/V7, >> is that correct? I think it would make sense to build these as multilibs, >> so the user can experiment to find out performance

Re: Adding Leon processor to the SPARC list of processors

2010-11-22 Thread Konrad Eisele
Eric Botcazou wrote: >> I would suggest a simple solution: >> I can have 5 --with-cpu configure possibilies: >> >> 1. single-lib explicit selection: >> - --with-cpu=sfsparcleon: v7/soft | >> - --with-cpu=sfsparcleonv8 : v8/soft | >> - --with-cpu=hfsparcleon: v7/hard | >> - --with-cpu=h

Re: Adding Leon processor to the SPARC list of processors

2010-11-22 Thread Eric Botcazou
> I would suggest a simple solution: > I can have 5 --with-cpu configure possibilies: > > 1. single-lib explicit selection: > - --with-cpu=sfsparcleon: v7/soft | > - --with-cpu=sfsparcleonv8 : v8/soft | > - --with-cpu=hfsparcleon: v7/hard | > - --with-cpu=hfsparcleonv8 : v8/hard | --

Re: Adding Leon processor to the SPARC list of processors

2010-11-22 Thread Konrad Eisele
>> * CONFIG_IU_MUL_LATENCY_2: Implementation options for the integer multiplier. >> TypeImplementation issue-rate/latency >> 2-clocks32x32 pipelined multiplier 1/2 >> 4-clocks16x16 standard multiplier 4/4 >> 5-clocks16x16 pipelined multiplier 4

Re: Adding Leon processor to the SPARC list of processors

2010-11-22 Thread Eric Botcazou
> CONFIG_FPU_ENABLE Y/N would correspond to --with-float=hard/soft, and > I believe setting CONFIG_IU_V8MULDIV to Y/N requires --with-cpu=V8/V7, > is that correct? I think it would make sense to build these as multilibs, > so the user can experiment to find out performance impacts of > the various

Re: Adding Leon processor to the SPARC list of processors

2010-11-22 Thread Konrad Eisele
Eric Botcazou wrote: >> Yes, if all the people who want only one set of libraries agree on what >> that set shall be (or this can be selected with existing configure flags), >> this is the simplest way. > > Yes, this can be selected at configure time with --with-cpu and --with-float. > > The defa

Re: Adding Leon processor to the SPARC list of processors

2010-11-22 Thread Konrad Eisele
Eric Botcazou wrote: >> How do you see this impacting the sparc-rtems target? >> >> We have v7/v8 with HW and SW FP multilibs now and >> leon is important to us. :-D > > Note that LEON will also be available as mere default cpu, i.e. you'll be > able > to configure sparc-rtems --with-tune=leon.

Re: Adding Leon processor to the SPARC list of processors

2010-11-22 Thread Jorge PEREZ
Geert Bosch wrote: > On Nov 19, 2010, at 11:53, Eric Botcazou wrote: > >>> Yes, if all the people who want only one set of libraries agree on what >>> that set shall be (or this can be selected with existing configure flags), >>> this is the simplest way. >>> >> Yes, this can be selected

Re: Adding Leon processor to the SPARC list of processors

2010-11-19 Thread Geert Bosch
On Nov 19, 2010, at 11:53, Eric Botcazou wrote: >> Yes, if all the people who want only one set of libraries agree on what >> that set shall be (or this can be selected with existing configure flags), >> this is the simplest way. > > Yes, this can be selected at configure time with --with-cpu and

Re: Adding Leon processor to the SPARC list of processors

2010-11-19 Thread Eric Botcazou
> How do you see this impacting the sparc-rtems target? > > We have v7/v8 with HW and SW FP multilibs now and > leon is important to us. :-D Note that LEON will also be available as mere default cpu, i.e. you'll be able to configure sparc-rtems --with-tune=leon. The new multilib stuff is for the

Re: Adding Leon processor to the SPARC list of processors

2010-11-19 Thread Joel Sherrill
Daniel, How do you see this impacting the sparc-rtems target? We have v7/v8 with HW and SW FP multilibs now and leon is important to us. :-D --joel On 11/19/2010 10:53 AM, Eric Botcazou wrote: Yes, if all the people who want only one set of libraries agree on what that set shall be (or this c

Re: Adding Leon processor to the SPARC list of processors

2010-11-19 Thread Eric Botcazou
> Yes, if all the people who want only one set of libraries agree on what > that set shall be (or this can be selected with existing configure flags), > this is the simplest way. Yes, this can be selected at configure time with --with-cpu and --with-float. The default configuration is also straig

Re: Adding Leon processor to the SPARC list of processors

2010-11-19 Thread Joern Rennecke
Quoting Eric Botcazou : However I also want a singlelib version to be able to compile. When createing a glibc crosscompiler, compiling 4 version of glibc makes it inpracticable. And crosscompiling user space apps I dont want the need to supply the extra switches explicitly all the time. Maybe t

Re: Adding Leon processor to the SPARC list of processors

2010-11-19 Thread Eric Botcazou
> However I also want a singlelib version to be able to compile. When > createing a glibc crosscompiler, compiling 4 version of glibc makes it > inpracticable. And crosscompiling user space apps I dont want the need to > supply the extra switches explicitly all the time. > > Maybe there is a simple

Re: Adding Leon processor to the SPARC list of processors

2010-11-18 Thread Konrad Eisele
Joern Rennecke wrote: > Quoting Konrad Eisele : > >> Maybe there is a simple way to achieve both multilib and singlelib? > > The (short-term) simple way is to have two separate configurations. > For a more flexible approach, look at how the SH port allows you to > mix & match your multilibs. > >

Re: Adding Leon processor to the SPARC list of processors

2010-11-18 Thread Joern Rennecke
Quoting Konrad Eisele : Maybe there is a simple way to achieve both multilib and singlelib? The (short-term) simple way is to have two separate configurations. For a more flexible approach, look at how the SH port allows you to mix & match your multilibs.

Re: Adding Leon processor to the SPARC list of processors

2010-11-18 Thread Konrad Eisele
Eric Botcazou wrote: >> Jiri Gaisler has now signed the FSF copyleft (it took quite long to get >> through the procedure) and I was said that I could post the patches >> now. > > Thanks for your perseverance. > >> The patches are straightforward I think. >> 1. Adds machine description gcc-4.4.2/g

Re: Adding Leon processor to the SPARC list of processors

2010-11-18 Thread Eric Botcazou
> Jiri Gaisler has now signed the FSF copyleft (it took quite long to get > through the procedure) and I was said that I could post the patches > now. Thanks for your perseverance. > The patches are straightforward I think. > 1. Adds machine description gcc-4.4.2/gcc/config/sparc/leon.md > 2. gcc

Adding Leon processor to the SPARC list of processors

2010-11-18 Thread Konrad Eisele
Hello, Jiri Gaisler has now signed the FSF copyleft (it took quite long to get through the procedure) and I was said that I could post the patches now. The patches are straightforward I think. 1. Adds machine description gcc-4.4.2/gcc/config/sparc/leon.md 2. gcc-4.4.2.ori/gcc/config/sparc/sparc.c: