On Thu, 16 Jan 2014 21:42:00 +0100 (CET)
[email protected] wrote:

> > On Thu, 16 Jan 2014 03:15:06 +0100 (CET)
> > [email protected] wrote:
> > > Re: [Ghdl-discuss] ghdl-0.31 source release!
> > > This is controlled by grt/Makefile.inc.  There is already a case
> > > for
> > > i386 FreeBSD.
> > > 
> > 
> > I tried a few variations in [translate/grt/Makefile.inc] without any
> > success. Since I don't have anything like a comprehensive
> > understanding
> > of what is going on (yet), it might be worthwhile to ask for
> > guidance.
> > 
> > 
> > GRT stack implementation for amd64 (x86_64)
> > translate/grt/config/amd64.S
> > 
> > --- Makefile.inc.orig   2014-01-16 09:45:09.000000000 -0500
> > +++ Makefile.inc        2014-01-16 09:57:52.000000000 -0500
> > @@ -56,7 +56,12 @@
> >  ifeq ($(filter-out i%86 freebsd%,$(arch) $(osys)),)
> >    GRT_TARGET_OBJS=i386.o linux.o times.o
> >    GRT_EXTRA_LIB=-lm $(GRT_ELF_OPTS)
> > -  ADAC=gnatgcc
> > +  ADAC=ada
> > +endif
> > +ifeq ($(filter-out x86_64 freebsd%,$(arch) $(osys)),)
> > +  GRT_TARGET_OBJS=amd64.o linux.o times.o
> > +  GRT_EXTRA_LIB=-lm $(GRT_ELF_OPTS)
> > +  ADAC=ada
> >  endif
> >  ifeq ($(filter-out i%86 darwin%,$(arch) $(osys)),)
> >    GRT_TARGET_OBJS=i386.o linux.o times.o
> > 
> > [build then test...]
> > 
> > $ ghdl -r dlx_test_behaviour --assert-level=note
> > 0 X"20020000"
> > 4 X"AC020018"
> > 8 X"20420001"
> > 12 X"6441000A"
> > 16 X"1420FFF0"
> > 20 X"44000000"
> > ghdl: exec error
> 
> This doesn't look that bad.  Are you trying the development branch or
> 0.31 ? I may have broken the development branch.
> 

To be certain I didn't overlook or otherwise fumble anything, I rebuilt
from a clean start using the Sourceforge 0.31 release tarball with the
changes to [translate/grt/Makefile.inc] described above. GHDL builds
without any errors and will run the hello_world and full_adder examples
from the [GHDL-guide][1] without any problems.

[1]: http://ghdl.free.fr/ghdl/

The DLX processor example, however, generates some unusual output that
ends with a "ghdl: exec error". 

DLX works as expected on i386.

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Ghdl-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/ghdl-discuss

Reply via email to