From ff54a9ef7f547451b6da5a651140d176273cfdd8 Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Wed, 30 Dec 1998 04:27:21 +0000 Subject: Simular and compiler for Hennessy and Patterson's MIPS-like RISC DLX architecture. --- emulators/dlx/Makefile | 39 +++++++++++++++++++++++++++++++++++++++ emulators/dlx/distinfo | 1 + emulators/dlx/files/patch-aa | 11 +++++++++++ emulators/dlx/files/patch-ab | 11 +++++++++++ emulators/dlx/files/patch-ac | 14 ++++++++++++++ emulators/dlx/files/patch-ba | 36 ++++++++++++++++++++++++++++++++++++ emulators/dlx/files/patch-bb | 12 ++++++++++++ emulators/dlx/files/patch-bc | 32 ++++++++++++++++++++++++++++++++ emulators/dlx/files/patch-bd | 22 ++++++++++++++++++++++ emulators/dlx/pkg-comment | 1 + emulators/dlx/pkg-descr | 4 ++++ emulators/dlx/pkg-plist | 8 ++++++++ 12 files changed, 191 insertions(+) create mode 100644 emulators/dlx/Makefile create mode 100644 emulators/dlx/distinfo create mode 100644 emulators/dlx/files/patch-aa create mode 100644 emulators/dlx/files/patch-ab create mode 100644 emulators/dlx/files/patch-ac create mode 100644 emulators/dlx/files/patch-ba create mode 100644 emulators/dlx/files/patch-bb create mode 100644 emulators/dlx/files/patch-bc create mode 100644 emulators/dlx/files/patch-bd create mode 100644 emulators/dlx/pkg-comment create mode 100644 emulators/dlx/pkg-descr create mode 100644 emulators/dlx/pkg-plist (limited to 'emulators') diff --git a/emulators/dlx/Makefile b/emulators/dlx/Makefile new file mode 100644 index 000000000000..2d53e6c344c7 --- /dev/null +++ b/emulators/dlx/Makefile @@ -0,0 +1,39 @@ +# ex:ts=8 +# Ports collection makefile for: dlx +# Version required: 2.0 +# Date created: Mon Dec 23, 1998 +# Whom: David O'Brien (obrien@NUXI.com) +# +# $Id: Makefile,v 1.2 1997/01/25 18:08:40 obrien Exp $ +# + +DISTNAME= dlx +PKGNAME= dlx-2.0 +CATEGORIES= emulators +MASTER_SITES= ftp://max.stanford.edu/pub/hennessy-patterson.software/ \ + ftp://ftp.cs.keio.ac.jp/pub/arch/hennessy-patterson.software/ +EXTRACT_SUFX= .tar.Z + +MAINTAINER= obrien@FreeBSD.org + +MAN1= dlxcc.1 + +do-configure: + cd ${WRKSRC}/gcc ; config.gcc dlx + +do-build: + cd ${WRKSRC}/dlxsim ; make install + cd ${WRKSRC}/gcc ; make prefix=${PREFIX} INSTALLDIR=${PREFIX}/bin + +do-install: + @cd ${WRKSRC}/gcc ; make prefix=${PREFIX} INSTALLDIR=${PREFIX}/bin install + @strip ${PREFIX}/bin/dlxcc ${PREFIX}/bin/dlx-gcc-cc1 \ + ${PREFIX}/bin/dlx-gcc-cpp + ${INSTALL_PROGRAM} ${WRKSRC}/bin/dlxsim ${PREFIX}/bin + @cd ${WRKSRC}/man ; ${INSTALL_MAN} ${MAN1} ${PREFIX}/man/man1 +.if !defined(NOPORTDOCS) + @${MKDIR} ${PREFIX}/share/doc/dlx + @${INSTALL_DATA} ${WRKSRC}/dlxsim/doc/* ${PREFIX}/share/doc/dlx +.endif + +.include diff --git a/emulators/dlx/distinfo b/emulators/dlx/distinfo new file mode 100644 index 000000000000..679b06df322f --- /dev/null +++ b/emulators/dlx/distinfo @@ -0,0 +1 @@ +MD5 (dlx.tar.Z) = a67e9c33092cda32030f4c54135a3020 diff --git a/emulators/dlx/files/patch-aa b/emulators/dlx/files/patch-aa new file mode 100644 index 000000000000..8f892449f2d0 --- /dev/null +++ b/emulators/dlx/files/patch-aa @@ -0,0 +1,11 @@ +--- dlxsim/Makefile.orig Sat Dec 26 13:14:21 1998 ++++ dlxsim/Makefile Sat Dec 26 13:14:41 1998 +@@ -11,7 +11,7 @@ + CC = cc + CFLAGS = -g -I. -Itcl + DEST = /tmp_mnt/home/ginger/pnh/bly/bin/$(MACHINE)/ +-DEST = ../bin ++DEST = ../bin/ + TARGET = dlxsim + + OBJS = asm.o cop0.o getput.o io.o main.o sim.o stop.o sym.o trap.o diff --git a/emulators/dlx/files/patch-ab b/emulators/dlx/files/patch-ab new file mode 100644 index 000000000000..cfb3cd968c4e --- /dev/null +++ b/emulators/dlx/files/patch-ab @@ -0,0 +1,11 @@ +--- dlxsim/sim.c.orig Wed May 8 13:37:56 1991 ++++ dlxsim/sim.c Sat Dec 26 13:08:12 1998 +@@ -2833,7 +2833,7 @@ + static char *errstring() + { + extern int errno, sys_nerr; +- extern char *sys_errlist[]; ++ /* extern char *sys_errlist[]; */ + static char msgbuf[64]; + + if( !errno ) diff --git a/emulators/dlx/files/patch-ac b/emulators/dlx/files/patch-ac new file mode 100644 index 000000000000..bba57c63aba5 --- /dev/null +++ b/emulators/dlx/files/patch-ac @@ -0,0 +1,14 @@ +--- dlxsim/tcl/Makefile.orig Tue Dec 18 12:24:38 1990 ++++ dlxsim/tcl/Makefile Sat Dec 26 13:11:18 1998 +@@ -13,9 +13,8 @@ + OBJS = glob.o tclBasic.o tclCmdAH.o tclCmdIZ.o tclExpr.o \ + tclGlob.o tclProc.o tclUtil.o + +-LIBOBJS = panic.o strerror.o strtol.o strtoul.o List_Init.o \ +- List_Insert.o List_ListIns.o List_Remove.o strspn.o \ +- strpbrk.o strchr.o ++LIBOBJS = panic.o List_Init.o \ ++ List_Insert.o List_ListIns.o List_Remove.o + + CSRCS = glob.c tclBasic.c tclCmdAH.c tclCmdIZ.c tclExpr.c \ + tclGlob.c tclProc.c tclUtil.c diff --git a/emulators/dlx/files/patch-ba b/emulators/dlx/files/patch-ba new file mode 100644 index 000000000000..844395d7565c --- /dev/null +++ b/emulators/dlx/files/patch-ba @@ -0,0 +1,36 @@ +--- gcc/Makefile.orig Tue Aug 14 12:29:46 1990 ++++ gcc/Makefile Sat Dec 26 13:49:36 1998 +@@ -45,9 +45,11 @@ + # Directory where sources are, from where we are. + srcdir = . + # Directory in which to put the executable for the command `gcc' +-bindir = $(prefix)/usr/local/bin ++#bindir = $(prefix)/usr/local/bin ++bindir = $(prefix)/bin + # Directory in which to put the subprograms used by the compiler. +-libdir = $(prefix)/usr/local/lib ++#libdir = $(prefix)/usr/local/lib ++libdir = $(prefix)/lib/dlx + # Directory in which to put man pages. + mandir = $(prefix)/usr/local/man/man1 + # Number to put in man-page filename. +@@ -311,7 +313,7 @@ + gcc.o: gcc.c $(CONFIG_H) + $(CC) $(CFLAGS) $(INCLUDES) \ + -DSTANDARD_STARTFILE_PREFIX=\"$(libdir)/\" \ +- -DSTANDARD_EXEC_PREFIX=\"$(INSTALLDIR)/gcc-\" -c \ ++ -DSTANDARD_EXEC_PREFIX=\"$(INSTALLDIR)/dlx-gcc-\" -c \ + `echo $(srcdir)/gcc.c | sed 's,^\./,,'` + + version.o: version.c +@@ -577,8 +579,8 @@ + $(INSTALL) $(srcdir)/gcc.1 $(mandir)/gcc.$(manext) + + install: all +- $(INSTALL) cc1 $(INSTALLDIR)/gcc-cc1 ;fi +- $(INSTALL) cpp $(INSTALLDIR)/gcc-cpp ++ $(INSTALL) cc1 $(INSTALLDIR)/dlx-gcc-cc1 ++ $(INSTALL) cpp $(INSTALLDIR)/dlx-gcc-cpp + $(INSTALL) dlxcc $(INSTALLDIR) + + diff --git a/emulators/dlx/files/patch-bb b/emulators/dlx/files/patch-bb new file mode 100644 index 000000000000..26b34feb1f76 --- /dev/null +++ b/emulators/dlx/files/patch-bb @@ -0,0 +1,12 @@ +--- gcc/stddef.h.orig Mon Aug 13 14:04:37 1990 ++++ gcc/stddef.h Sat Dec 26 13:02:04 1998 +@@ -9,7 +9,9 @@ + + #ifndef _SIZE_T /* in case has defined it. */ + #define _SIZE_T ++ /* + typedef unsigned long size_t; ++ */ + #endif /* _SIZE_T */ + + /* A null pointer constant. */ diff --git a/emulators/dlx/files/patch-bc b/emulators/dlx/files/patch-bc new file mode 100644 index 000000000000..13c894485766 --- /dev/null +++ b/emulators/dlx/files/patch-bc @@ -0,0 +1,32 @@ +--- gcc/gcc.c.orig Mon Aug 13 14:03:57 1990 ++++ gcc/gcc.c Sat Dec 26 12:59:35 1998 +@@ -1867,7 +1867,9 @@ + char *name; + { + extern int errno, sys_nerr; ++ /* + extern char *sys_errlist[]; ++ */ + char *s; + + if (errno < sys_nerr) +@@ -1881,7 +1883,9 @@ + char *name; + { + extern int errno, sys_nerr; ++ /* + extern char *sys_errlist[]; ++ */ + char *s; + + if (errno < sys_nerr) +@@ -1895,7 +1899,9 @@ + char *name; + { + extern int errno, sys_nerr; ++ /* + extern char *sys_errlist[]; ++ */ + char *s; + + if (errno < sys_nerr) diff --git a/emulators/dlx/files/patch-bd b/emulators/dlx/files/patch-bd new file mode 100644 index 000000000000..3423ceb8dcaa --- /dev/null +++ b/emulators/dlx/files/patch-bd @@ -0,0 +1,22 @@ +--- gcc/cccp.c.orig Mon Aug 13 14:03:34 1990 ++++ gcc/cccp.c Sat Dec 26 13:05:53 1998 +@@ -4752,7 +4752,9 @@ + int i; + FILE_BUF *ip = NULL; + extern int errno, sys_nerr; ++ /* + extern char *sys_errlist[]; ++ */ + + for (i = indepth; i >= 0; i--) + if (instack[i].fname != NULL) { +@@ -5389,7 +5391,9 @@ + char *name; + { + extern int errno, sys_nerr; ++ /* + extern char *sys_errlist[]; ++ */ + + fprintf (stderr, "%s: ", progname); + if (errno < sys_nerr) diff --git a/emulators/dlx/pkg-comment b/emulators/dlx/pkg-comment new file mode 100644 index 000000000000..d44487c3e997 --- /dev/null +++ b/emulators/dlx/pkg-comment @@ -0,0 +1 @@ +Assembler for Hennessy and Patterson's DLX architecture diff --git a/emulators/dlx/pkg-descr b/emulators/dlx/pkg-descr new file mode 100644 index 000000000000..939de56b83f5 --- /dev/null +++ b/emulators/dlx/pkg-descr @@ -0,0 +1,4 @@ +Simular and compiler for Hennessy and Patterson's MIPS-like RISC DLX +architecture. DLX is documented in "Computer Architecture: A Quantitative +Approach" by Hennessy and Patterson. + diff --git a/emulators/dlx/pkg-plist b/emulators/dlx/pkg-plist new file mode 100644 index 000000000000..d6fdce56564c --- /dev/null +++ b/emulators/dlx/pkg-plist @@ -0,0 +1,8 @@ +bin/dlxsim +bin/dlxcc +bin/dlx-gcc-cc1 +bin/dlx-gcc-cpp +share/doc/dlx/dlxsim.tex +share/doc/dlx/manual.tex +share/doc/dlx/report.tex +share/doc/dlx/report2.tex -- cgit v1.2.3