summaryrefslogtreecommitdiffstats
path: root/emulators
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>1998-12-30 04:27:21 +0000
committerobrien <obrien@FreeBSD.org>1998-12-30 04:27:21 +0000
commitefd9ddfd6ef9596ad266a62aeaf0e593438a020a (patch)
tree102b97cc381001944e2869b928cfb3120278e5c7 /emulators
parent2f2ec73539dd53db0acda53a78faa9ae5a8c4840 (diff)
downloadFreeBSD-ports-efd9ddfd6ef9596ad266a62aeaf0e593438a020a.zip
FreeBSD-ports-efd9ddfd6ef9596ad266a62aeaf0e593438a020a.tar.gz
Simular and compiler for Hennessy and Patterson's MIPS-like RISC DLX
architecture.
Diffstat (limited to 'emulators')
-rw-r--r--emulators/dlx/Makefile39
-rw-r--r--emulators/dlx/distinfo1
-rw-r--r--emulators/dlx/files/patch-aa11
-rw-r--r--emulators/dlx/files/patch-ab11
-rw-r--r--emulators/dlx/files/patch-ac14
-rw-r--r--emulators/dlx/files/patch-ba36
-rw-r--r--emulators/dlx/files/patch-bb12
-rw-r--r--emulators/dlx/files/patch-bc32
-rw-r--r--emulators/dlx/files/patch-bd22
-rw-r--r--emulators/dlx/pkg-comment1
-rw-r--r--emulators/dlx/pkg-descr4
-rw-r--r--emulators/dlx/pkg-plist8
12 files changed, 191 insertions, 0 deletions
diff --git a/emulators/dlx/Makefile b/emulators/dlx/Makefile
new file mode 100644
index 0000000..2d53e6c
--- /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 <bsd.port.mk>
diff --git a/emulators/dlx/distinfo b/emulators/dlx/distinfo
new file mode 100644
index 0000000..679b06d
--- /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 0000000..8f89244
--- /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 0000000..cfb3cd9
--- /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 0000000..bba57c6
--- /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 0000000..844395d
--- /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 0000000..26b34fe
--- /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 <sys/types.h> 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 0000000..13c8944
--- /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 0000000..3423ceb
--- /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 0000000..d44487c
--- /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 0000000..939de56
--- /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 0000000..d6fdce5
--- /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
OpenPOWER on IntegriCloud