aboutsummaryrefslogtreecommitdiffstats
path: root/emulators
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2000-10-11 07:53:19 +0800
committerobrien <obrien@FreeBSD.org>2000-10-11 07:53:19 +0800
commit5deaabf695b15909da3adec9dab062dc11075fad (patch)
treebf04abfa1683880541368756ad2f914adbd81c42 /emulators
parent39551a22ff64816d798ee914d26e45263c85e3dc (diff)
downloadfreebsd-ports-gnome-5deaabf695b15909da3adec9dab062dc11075fad.tar.gz
freebsd-ports-gnome-5deaabf695b15909da3adec9dab062dc11075fad.tar.zst
freebsd-ports-gnome-5deaabf695b15909da3adec9dab062dc11075fad.zip
IA64 simulator (Intel(R) Architecture 64).
Obtained from: NetBSD (parts)
Diffstat (limited to 'emulators')
-rw-r--r--emulators/ia64sim/Makefile31
-rw-r--r--emulators/ia64sim/distinfo1
-rw-r--r--emulators/ia64sim/files/HOLD.patch-ia64sim.c68
-rw-r--r--emulators/ia64sim/files/patch-assemble.c22
-rw-r--r--emulators/ia64sim/files/patch-ia64sim.c100
-rw-r--r--emulators/ia64sim/files/patch-makefile.unx13
-rw-r--r--emulators/ia64sim/pkg-comment1
-rw-r--r--emulators/ia64sim/pkg-descr6
-rw-r--r--emulators/ia64sim/pkg-plist3
9 files changed, 245 insertions, 0 deletions
diff --git a/emulators/ia64sim/Makefile b/emulators/ia64sim/Makefile
new file mode 100644
index 000000000000..e8ffc6a80d5a
--- /dev/null
+++ b/emulators/ia64sim/Makefile
@@ -0,0 +1,31 @@
+# ex:ts=8
+# Ports collection makefile for: ia64sim
+# Date created: Tue Oct 10, 2000
+# Whom: David O'Brien (obrien@NUXI.com)
+#
+# $FreeBSD$
+#
+
+PORTNAME= ia64sim
+PORTVERSION= 0.2
+CATEGORIES= emulators
+MASTER_SITES= http://www.glue.umd.edu/~jasonp/ \
+ http://odin.asgard/
+DISTFILES= ${PORTNAME}${EXTRACT_SUFX}
+
+MAINTAINER= obrien@FreeBSD.org
+
+EXTRACT_BEFORE_ARGS= -qLa
+WRKSRC= ${WRKDIR}/${PORTNAME}
+USE_ZIP= yes
+USE_GMAKE= yes
+MAKEFILE= makefile.unx
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/ia64sim ${LOCALBASE}/bin/ia64sim
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${PREFIX}/share/doc/ia64sim
+ ${INSTALL_DATA} ${WRKDIR}/ia64.doc ${PREFIX}/share/doc/ia64sim
+.endif
+
+.include <bsd.port.mk>
diff --git a/emulators/ia64sim/distinfo b/emulators/ia64sim/distinfo
new file mode 100644
index 000000000000..92a50709d268
--- /dev/null
+++ b/emulators/ia64sim/distinfo
@@ -0,0 +1 @@
+MD5 (ia64sim.zip) = 058971863cdb21554133f89b85265c36
diff --git a/emulators/ia64sim/files/HOLD.patch-ia64sim.c b/emulators/ia64sim/files/HOLD.patch-ia64sim.c
new file mode 100644
index 000000000000..1d2a1452e23a
--- /dev/null
+++ b/emulators/ia64sim/files/HOLD.patch-ia64sim.c
@@ -0,0 +1,68 @@
+$NetBSD: patch-ad,v 1.2 1999/12/10 15:14:03 soren Exp $
+
+--- ia64sim.c.orig Sun Dec 5 02:15:28 1999
++++ ia64sim.c Fri Dec 10 15:55:16 1999
+@@ -95,7 +95,7 @@
+ currslot = SLOT0;
+ }
+ else {
+- i1 = strtoll(first+1, &junk, 0);
++ i1 = strtoq(first+1, &junk, 0);
+ if(*junk) {
+ printf("3syntax error\n");
+ return;
+@@ -135,7 +135,7 @@
+ }
+ }
+ else {
+- i1 = strtoll(first, &junk, 0);
++ i1 = strtoq(first, &junk, 0);
+ if(*junk) {
+ printf("6syntax error\n");
+ return;
+@@ -156,7 +156,7 @@
+ size2 = sizeof(uint64);
+ }
+ else {
+- i2 = strtoll(second+1, &junk, 0);
++ i2 = strtoq(second+1, &junk, 0);
+ if(*junk) {
+ printf("7syntax error\n");
+ return;
+@@ -197,7 +197,7 @@
+ }
+ }
+ else {
+- i2 = strtoll(second, &junk, 0);
++ i2 = strtoq(second, &junk, 0);
+ if(*junk) {
+ printf("Asyntax error\n");
+ return;
+@@ -286,7 +286,7 @@
+
+ base = strtok(NULL, tokens);
+ if(base) {
+- temp = strtoll(base, &junk, 0);
++ temp = strtoq(base, &junk, 0);
+ if(*junk) {
+ printf("2syntax error\n");
+ return;
+@@ -338,7 +338,7 @@
+ return;
+ }
+
+- base = strtoll(second, &junk, 0) & ~15;
++ base = strtoq(second, &junk, 0) & ~15;
+ if(*junk) {
+ printf("Invalid base address\n");
+ return;
+@@ -422,6 +422,9 @@
+ while(1) {
+ printf("IA64sim>> ");
+ gets(cmd);
++
++ if (feof(stdin))
++ return 0;
+
+ nextchar = cmd;
+ while(*nextchar) *nextchar++ = tolower(*nextchar);
diff --git a/emulators/ia64sim/files/patch-assemble.c b/emulators/ia64sim/files/patch-assemble.c
new file mode 100644
index 000000000000..6ded469165d7
--- /dev/null
+++ b/emulators/ia64sim/files/patch-assemble.c
@@ -0,0 +1,22 @@
+$NetBSD: patch-ac,v 1.1 1999/12/10 13:55:15 soren Exp $
+
+--- asm/assemble.c.orig Fri Dec 10 14:50:49 1999
++++ asm/assemble.c Fri Dec 10 14:50:58 1999
+@@ -280,7 +280,7 @@
+ break;
+
+ case 'i': /* signed immediate */
+- imm = strtoll(inptr, &throwaway, 0);
++ imm = strtoq(inptr, &throwaway, 0);
+ if( isdigit(refptr[3]) )
+ maxbits = (refptr[2]-'0')*10 + (refptr[3]-'0');
+ else
+@@ -294,7 +294,7 @@
+ break;
+
+ case 'u': /* unsigned immediate */
+- imm = strtoll(inptr, &throwaway, 0);
++ imm = strtoq(inptr, &throwaway, 0);
+ maxbits = (refptr[2]-'0');
+ if(maxbits==6)
+ index = 65; /* <-- some ops need 1-64, not 0-63 */
diff --git a/emulators/ia64sim/files/patch-ia64sim.c b/emulators/ia64sim/files/patch-ia64sim.c
new file mode 100644
index 000000000000..32f0b564a959
--- /dev/null
+++ b/emulators/ia64sim/files/patch-ia64sim.c
@@ -0,0 +1,100 @@
+--- ia64sim.c.orig Wed Mar 8 04:54:20 2000
++++ ia64sim.c Tue Oct 10 16:34:36 2000
+@@ -98,7 +98,7 @@
+ stop(); /* Clear pending register hazzards */
+ }
+ else {
+- i1 = strtoll(first+1, &junk, 0);
++ i1 = strtoq(first+1, &junk, 0);
+ if(*junk) {
+ printf("3syntax error\n");
+ return;
+@@ -138,7 +138,7 @@
+ }
+ }
+ else {
+- i1 = strtoll(first, &junk, 0);
++ i1 = strtoq(first, &junk, 0);
+ if(*junk) {
+ printf("6syntax error\n");
+ return;
+@@ -159,7 +159,7 @@
+ size2 = sizeof(uint64);
+ }
+ else {
+- i2 = strtoll(second+1, &junk, 0);
++ i2 = strtoq(second+1, &junk, 0);
+ if(*junk) {
+ printf("7syntax error\n");
+ return;
+@@ -200,7 +200,7 @@
+ }
+ }
+ else {
+- i2 = strtoll(second, &junk, 0);
++ i2 = strtoq(second, &junk, 0);
+ if(*junk) {
+ printf("Asyntax error\n");
+ return;
+@@ -289,7 +289,7 @@
+
+ base = strtok(NULL, tokens);
+ if(base) {
+- temp = strtoll(base, &junk, 0);
++ temp = strtoq(base, &junk, 0);
+ if(*junk) {
+ printf("2syntax error\n");
+ return;
+@@ -355,7 +355,7 @@
+ }
+ if(!second) base = 0;
+ else {
+- base = strtoll(second, &junk, 0) & ~15;
++ base = strtoq(second, &junk, 0) & ~15;
+ if(*junk) {
+ printf("Invalid base address\n");
+ return;
+@@ -397,7 +397,7 @@
+ }
+ if(!second) base = 0;
+ else {
+- base = strtoll(second, &junk, 0) & ~15;
++ base = strtoq(second, &junk, 0) & ~15;
+ if(*junk) {
+ printf("Invalid base address\n");
+ return;
+@@ -436,13 +436,13 @@
+ return;
+ }
+
+- base = strtoll(second, &junk, 0) & ~15;
++ base = strtoq(second, &junk, 0) & ~15;
+ if(*junk) {
+ printf("Invalid base address\n");
+ return;
+ }
+
+- module_size = strtoll(third, &junk, 0) & ~15;
++ module_size = strtoq(third, &junk, 0) & ~15;
+ if(*junk) {
+ printf("Invalid length\n");
+ return;
+@@ -512,7 +512,7 @@
+ printf("Break point address is required\n");
+ return;
+ }
+- break_address = strtoll(first,&junk,0) & ~15;
++ break_address = strtoq(first,&junk,0) & ~15;
+ if(*junk) {
+ printf("Invalid break point address\n");
+ return;
+@@ -556,6 +556,9 @@
+ while(1) {
+ printf("IA64sim>> ");
+ gets(cmd);
++
++ if (feof(stdin))
++ return 0;
+
+ nextchar = cmd;
+ while(*nextchar) *nextchar++ = tolower(*nextchar);
diff --git a/emulators/ia64sim/files/patch-makefile.unx b/emulators/ia64sim/files/patch-makefile.unx
new file mode 100644
index 000000000000..08c1f2bb5fd5
--- /dev/null
+++ b/emulators/ia64sim/files/patch-makefile.unx
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.1.1.1 1999/12/10 12:59:03 agc Exp $
+
+--- makefile.unx 1999/12/10 12:46:49 1.1
++++ makefile.unx 1999/12/10 12:47:03
+@@ -18,7 +18,7 @@
+ OBJDIR = obj
+ INCDIR = include
+ CC = gcc
+-CFLAGS = -O3 -m486 -fomit-frame-pointer -s -I$(INCDIR)
++CFLAGS = -O3 -fomit-frame-pointer -s -I$(INCDIR)
+
+ ASMSRCS= assemble.c bundle.c asmfunc.c jumptbl.c decode.c
+
diff --git a/emulators/ia64sim/pkg-comment b/emulators/ia64sim/pkg-comment
new file mode 100644
index 000000000000..7f774a0ac294
--- /dev/null
+++ b/emulators/ia64sim/pkg-comment
@@ -0,0 +1 @@
+IA64 simulator (Intel(R) Architecture 64)
diff --git a/emulators/ia64sim/pkg-descr b/emulators/ia64sim/pkg-descr
new file mode 100644
index 000000000000..cb1d0896def8
--- /dev/null
+++ b/emulators/ia64sim/pkg-descr
@@ -0,0 +1,6 @@
+IA64 ISA simulator
+------------------
+
+Simulator for the Intel/HP IA-64 architecture.
+
+WWW: http://www.glue.umd.edu/~jasonp/
diff --git a/emulators/ia64sim/pkg-plist b/emulators/ia64sim/pkg-plist
new file mode 100644
index 000000000000..763931f9333b
--- /dev/null
+++ b/emulators/ia64sim/pkg-plist
@@ -0,0 +1,3 @@
+@comment $FreeBSD$
+bin/ia64sim
+share/doc/ia64sim/ia64.doc