summaryrefslogtreecommitdiff
path: root/emulators/simh
diff options
context:
space:
mode:
authorskrll <skrll>2004-12-22 21:07:01 +0000
committerskrll <skrll>2004-12-22 21:07:01 +0000
commit8fdbc08ea99f84c26ff0d230a621f725cf343bad (patch)
treefcf011cae0f4cef8829db5cb339de9db198d2a2b /emulators/simh
parent79f05bc0d0f19ad1edcf852437dcd2b7587cb906 (diff)
downloadpkgsrc-8fdbc08ea99f84c26ff0d230a621f725cf343bad.tar.gz
Update simh to 3.3.0. Too many new features and bug fixes to list here.
Diffstat (limited to 'emulators/simh')
-rw-r--r--emulators/simh/Makefile6
-rw-r--r--emulators/simh/PLIST10
-rw-r--r--emulators/simh/distinfo12
-rw-r--r--emulators/simh/patches/patch-aa37
-rw-r--r--emulators/simh/patches/patch-ab42
-rw-r--r--emulators/simh/patches/patch-ac8
6 files changed, 80 insertions, 35 deletions
diff --git a/emulators/simh/Makefile b/emulators/simh/Makefile
index f5aa7e475b3..cefc7ab1af6 100644
--- a/emulators/simh/Makefile
+++ b/emulators/simh/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.17 2004/01/20 12:14:41 agc Exp $
+# $NetBSD: Makefile,v 1.18 2004/12/22 21:07:01 skrll Exp $
#
-DISTNAME= simhv30-2
-PKGNAME= simh-3.0.2
+DISTNAME= simhv33-0
+PKGNAME= simh-3.3.0
CATEGORIES= emulators
MASTER_SITES= http://simh.trailing-edge.com/sources/
EXTRACT_SUFX= .zip
diff --git a/emulators/simh/PLIST b/emulators/simh/PLIST
index 9cc0153bcd6..37d68c46102 100644
--- a/emulators/simh/PLIST
+++ b/emulators/simh/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.7 2003/09/26 21:36:11 jmmv Exp $
+@comment $NetBSD: PLIST,v 1.8 2004/12/22 21:07:01 skrll Exp $
bin/simh-altair
bin/simh-altairz80
bin/simh-eclipse
@@ -10,6 +10,7 @@ bin/simh-i1620
bin/simh-ibm1130
bin/simh-id16
bin/simh-id32
+bin/simh-lgp
bin/simh-nova
bin/simh-pdp1
bin/simh-pdp10
@@ -22,10 +23,10 @@ bin/simh-pdp9
bin/simh-s3
bin/simh-sds
bin/simh-vax
-share/doc/simh/0readme_30.txt
+share/doc/simh/0readme_33.txt
share/doc/simh/0readme_ethernet.txt
share/doc/simh/altair.txt
-share/doc/simh/altairz80.txt
+share/doc/simh/altairz80_doc.txt
share/doc/simh/eclipse.txt
share/doc/simh/gri_doc.txt
share/doc/simh/h316_doc.txt
@@ -36,10 +37,12 @@ share/doc/simh/i1401_doc.txt
share/doc/simh/i1620_doc.txt
share/doc/simh/id_diag.txt
share/doc/simh/id_doc.txt
+share/doc/simh/lgp_doc.txt
share/doc/simh/nova_doc.txt
share/doc/simh/pdp10_diag.txt
share/doc/simh/pdp10_doc.txt
share/doc/simh/pdp11_doc.txt
+share/doc/simh/pdp18b_diag.txt
share/doc/simh/pdp18b_doc.txt
share/doc/simh/pdp1_doc.txt
share/doc/simh/pdp8_doc.txt
@@ -52,6 +55,7 @@ share/doc/simh/simh_doc.txt
share/doc/simh/simh_faq.txt
share/doc/simh/simh_swre.txt
share/doc/simh/system3.txt
+share/doc/simh/vax780_doc.txt
share/doc/simh/vax_doc.txt
share/simh/ka655.bin
@dirrm share/simh
diff --git a/emulators/simh/distinfo b/emulators/simh/distinfo
index 8ceca410583..12af3bfa9ce 100644
--- a/emulators/simh/distinfo
+++ b/emulators/simh/distinfo
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.10 2003/09/26 21:36:11 jmmv Exp $
+$NetBSD: distinfo,v 1.11 2004/12/22 21:07:01 skrll Exp $
-SHA1 (simhv30-2.zip) = 539822d9c3c87a49483c3a14310a02bee1372c09
-Size (simhv30-2.zip) = 1757964 bytes
-SHA1 (patch-aa) = caa25e4f265d03f65347a2e873e0e736baa43750
-SHA1 (patch-ab) = 97d66b3fcf79c51feb54a6cba3cdc3f58d15eb3f
-SHA1 (patch-ac) = 1366392ef1fcdf8de64d8606fde10df20212b49a
+SHA1 (simhv33-0.zip) = 99a021afe2fd8dfb32bb479e383347e2b883e0f9
+Size (simhv33-0.zip) = 2153444 bytes
+SHA1 (patch-aa) = a1c1e10f81b5883c5388084d1b9f31d3560353fe
+SHA1 (patch-ab) = aff84028d4184b773b2bd4ebf2ee166357f18924
+SHA1 (patch-ac) = 0f1ddee6f69c0337c8ea02cf24ed6fdecc0ca1f4
diff --git a/emulators/simh/patches/patch-aa b/emulators/simh/patches/patch-aa
index 5ba1a2b9a70..402c4d444a9 100644
--- a/emulators/simh/patches/patch-aa
+++ b/emulators/simh/patches/patch-aa
@@ -1,28 +1,41 @@
-$NetBSD: patch-aa,v 1.6 2003/05/31 16:10:53 thorpej Exp $
+$NetBSD: patch-aa,v 1.7 2004/12/22 21:07:01 skrll Exp $
---- Makefile.orig 2003-03-02 15:44:14.000000000 -0800
-+++ Makefile 2003-05-31 08:55:03.000000000 -0700
-@@ -3,24 +3,24 @@
+--- Makefile.orig 2004-10-30 18:32:50.000000000 +0100
++++ Makefile
+@@ -3,28 +3,30 @@
# Note: -O2 is sometimes broken in GCC when setjump/longjump is being
# used. Try -O2 only with released simulators.
#
-ifeq ($(WIN32),)
+#ifeq ($(WIN32),)
#Unix Environments
- CC = gcc -O2 -lm -I .
- #CC = gcc -O2 -g -lm -I .
+-ifeq ($(OSTYPE),solaris)
+-OS_CCDEFS = -lsocket -lnsl -lpthread -D_GNU_SOURCE
+-else
+-OS_CCDEFS = -D_GNU_SOURCE
+-endif
+-CC = gcc -std=c99 -O2 -U__STRICT_ANSI__ -g -lm $(OS_CCDEFS) -I .
-ifeq ($(USE_NETWORK),)
-else
-+#ifeq ($(USE_NETWORK),)
-+#else
- NETWORK_OPT = -DUSE_NETWORK -lpcap
+-NETWORK_OPT = -DUSE_NETWORK -isystem /usr/local/include /usr/local/lib/libpcap.a
-endif
-else
++#ifeq ($(OSTYPE),solaris)
++#OS_CCDEFS = -lsocket -lnsl -lpthread -D_GNU_SOURCE
++#else
++#OS_CCDEFS = -D_GNU_SOURCE
++#endif
++#CC = gcc -std=c99 -O2 -U__STRICT_ANSI__ -g -lm $(OS_CCDEFS) -I .
++CC = gcc -O2 -g -lm -I . -DDONT_USE_PCAP_FINDALLDEVS -DNEED_PCAP_SENDPACKET
++#ifeq ($(USE_NETWORK),)
++#else
++#NETWORK_OPT = -DUSE_NETWORK -isystem /usr/local/include /usr/local/lib/libpcap.a
++NETWORK_OPT = -DUSE_NETWORK -lpcap
+#endif
+#else
#Win32 Environments
-LDFLAGS = -lm -lwsock32
--CC = gcc -O0 -I.
+-CC = gcc -std=c99 -U__STRICT_ANSI__ -O0 -I.
-EXE = .exe
-ifeq ($(USE_NETWORK),)
-else
@@ -30,7 +43,7 @@ $NetBSD: patch-aa,v 1.6 2003/05/31 16:10:53 thorpej Exp $
-endif
-endif
+#LDFLAGS = -lm -lwsock32
-+#CC = gcc -O0 -I.
++#CC = gcc -std=c99 -U__STRICT_ANSI__ -O0 -I.
+#EXE = .exe
+#ifeq ($(USE_NETWORK),)
+#else
@@ -40,7 +53,7 @@ $NetBSD: patch-aa,v 1.6 2003/05/31 16:10:53 thorpej Exp $
#
-@@ -223,11 +223,11 @@
+@@ -252,11 +254,11 @@ ALL = ${BIN}pdp1${EXE} ${BIN}pdp4${EXE}
all : ${ALL}
clean :
diff --git a/emulators/simh/patches/patch-ab b/emulators/simh/patches/patch-ab
index 48ccaee8cab..11179bfc0b0 100644
--- a/emulators/simh/patches/patch-ab
+++ b/emulators/simh/patches/patch-ab
@@ -1,11 +1,27 @@
-$NetBSD: patch-ab,v 1.4 2003/05/31 16:10:53 thorpej Exp $
+$NetBSD: patch-ab,v 1.5 2004/12/22 21:07:01 skrll Exp $
---- sim_ether.c.orig 2003-01-16 09:45:04.000000000 -0800
-+++ sim_ether.c 2003-05-31 08:51:54.000000000 -0700
-@@ -383,6 +383,14 @@
- /* set data in passed read packet */
+--- sim_ether.c.orig 2004-03-31 13:38:58.000000000 +0100
++++ sim_ether.c
+@@ -830,6 +830,15 @@ void eth_callback(u_char* info, const st
+ tmp_packet.len = header->len;
+ memcpy(tmp_packet.msg, data, header->len);
+
++ /*
++ * Pad packet to minimum ethernet len, in case it comes from the local
++ * host.
++ */
++ if (header->len < 60) {
++ tmp_packet.len = 60;
++ memset(dev->read_packet->msg + header->len, 0, 60 - header->len);
++ }
++
+ eth_packet_trace (dev, tmp_packet.msg, tmp_packet.len, "rcvqd");
+
+ pthread_mutex_lock (&dev->lock);
+@@ -840,6 +849,15 @@ void eth_callback(u_char* info, const st
dev->read_packet->len = header->len;
memcpy(dev->read_packet->msg, data, header->len);
+
+ /*
+ * Pad packet to minimum ethernet len, in case it comes from the local
+ * host.
@@ -14,6 +30,18 @@ $NetBSD: patch-ab,v 1.4 2003/05/31 16:10:53 thorpej Exp $
+ dev->read_packet->len = 60;
+ memset(dev->read_packet->msg + header->len, 0, 60 - header->len);
+ }
++
+ eth_packet_trace (dev, dev->read_packet->msg, dev->read_packet->len, "reading");
+
+ /* call optional read callback function */
+@@ -1080,8 +1098,10 @@ int eth_host_devices(int used, int max,
+
+ int eth_devices(int max, ETH_LIST* list)
+ {
++#ifndef DONT_USE_PCAP_FINDALLDEVS
+ pcap_if_t* alldevs;
+ pcap_if_t* dev;
++#endif
+ int i = 0;
+ char errbuf[PCAP_ERRBUF_SIZE];
- #ifdef ETH_DEBUG
- eth_packet_trace (dev->read_packet, "reading");
diff --git a/emulators/simh/patches/patch-ac b/emulators/simh/patches/patch-ac
index 42ad0b2dddd..02ef9cec68d 100644
--- a/emulators/simh/patches/patch-ac
+++ b/emulators/simh/patches/patch-ac
@@ -1,8 +1,8 @@
-$NetBSD: patch-ac,v 1.3 2003/09/26 21:36:11 jmmv Exp $
+$NetBSD: patch-ac,v 1.4 2004/12/22 21:07:01 skrll Exp $
---- scp.c.orig Thu Sep 11 17:24:08 2003
-+++ scp.c
-@@ -3731,13 +3731,13 @@ for (i = 0; i < sec; i++) { /* loop *
+--- sim_console.c.orig 2004-11-05 19:39:24.000000000 +0000
++++ sim_console.c
+@@ -347,13 +347,13 @@ for (i = 0; i < sec; i++) { /* loop *
if (tmxr_poll_conn (&sim_con_tmxr) >= 0) { /* poll connect */
sim_con_ldsc.rcve = 1; /* rcv enabled */
if (i) { /* if delayed */