1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-23 09:10:43 +00:00

Simular and compiler for Hennessy and Patterson's MIPS-like RISC DLX

architecture.
This commit is contained in:
David E. O'Brien 1998-12-30 04:27:21 +00:00
parent b5ee406703
commit ff54a9ef7f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=15719
12 changed files with 191 additions and 0 deletions

39
emulators/dlx/Makefile Normal file
View File

@ -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>

1
emulators/dlx/distinfo Normal file
View File

@ -0,0 +1 @@
MD5 (dlx.tar.Z) = a67e9c33092cda32030f4c54135a3020

View File

@ -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

View File

@ -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 )

View File

@ -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

View File

@ -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)

View File

@ -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. */

View File

@ -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)

View File

@ -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)

View File

@ -0,0 +1 @@
Assembler for Hennessy and Patterson's DLX architecture

4
emulators/dlx/pkg-descr Normal file
View File

@ -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.

8
emulators/dlx/pkg-plist Normal file
View File

@ -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