[Midnightbsd-cvs] mports: mports/emulators: Add IA64 simulator.

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Fri May 2 17:03:03 EDT 2008


Log Message:
-----------
Add IA64 simulator.  (crazy)

Modified Files:
--------------
    mports/emulators:
        Makefile (r1.22 -> r1.23)

Added Files:
-----------
    mports/emulators/ia64sim:
        Makefile (r1.1)
        distinfo (r1.1)
        pkg-descr (r1.1)
    mports/emulators/ia64sim/files:
        patch-ia64.h (r1.1)
        patch-ia64sim.c (r1.1)
        patch-makefile.unx (r1.1)

-------------- next part --------------
Index: Makefile
===================================================================
RCS file: /home/cvs/mports/emulators/Makefile,v
retrieving revision 1.22
retrieving revision 1.23
diff -L emulators/Makefile -L emulators/Makefile -u -r1.22 -r1.23
--- emulators/Makefile
+++ emulators/Makefile
@@ -10,6 +10,7 @@
     SUBDIR += dgen-sdl
     SUBDIR += dosbox
     SUBDIR += extract-xiso
+    SUBDIR += ia64sim
     SUBDIR += kqemu-kmod
     SUBDIR += linux_base-fc4
     SUBDIR += mtools
--- /dev/null
+++ emulators/ia64sim/pkg-descr
@@ -0,0 +1,6 @@
+IA64 ISA simulator
+Simulator for the Intel/HP IA-64 architecture.
+
+WWW:  http://www.boo.net/~jasonp/
+      http://www.glue.umd.edu/~jasonp/
+      http://www.pacificsites.com/~ccrayne/ia64.html
--- /dev/null
+++ emulators/ia64sim/Makefile
@@ -0,0 +1,41 @@
+# Ports collection makefile for:  ia64sim
+# Date created:			  May 2, 2008
+# Whom:				  Lucas Holt <luke at midnightbsd.org>
+#
+# $MidnightBSD: mports/emulators/ia64sim/Makefile,v 1.1 2008/05/02 21:03:00 laffer1 Exp $
+#
+
+PORTNAME=	ia64sim
+PORTVERSION=	0.5
+CATEGORIES=	emulators
+MASTER_SITES=	http://www.boo.net/~jasonp/
+DISTNAME=	${PORTNAME}
+
+MAINTAINER=	ports at MidnightBSD.org
+COMMENT=	IA64 simulator (Intel(R) Architecture 64)
+LICENSE=	publicdom
+
+USE_ZIP=	yes
+
+.include <bsd.port.pre.mk>
+
+EXTRACT_BEFORE_ARGS=	-qLa
+WRKSRC=		${WRKDIR}/home/chuck/ia64simcc
+USE_GMAKE=	yes
+MAKEFILE=	makefile.unx
+
+PLIST_FILES=	bin/ia64sim
+PORTDOCS=	ia64user.txt readme
+
+pre-build:
+	${RM} -f ${WRKSRC}/obj/*.o
+	${RM} -f ${WRKSRC}/ia64sim
+
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/ia64sim ${PREFIX}/bin
+.if !defined(NOPORTDOCS)
+	@${MKDIR} ${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/doc/ia64user.txt ${WRKSRC}/readme ${DOCSDIR}
+.endif
+
+.include <bsd.port.post.mk>
--- /dev/null
+++ emulators/ia64sim/distinfo
@@ -0,0 +1,3 @@
+MD5 (ia64sim.zip) = 15d38b90a98afc72cee6797ce7e5c171
+SHA256 (ia64sim.zip) = d4e08340e2974d238910f265268d08418fe87e6c178f7a0955b8e0b0ab22a92a
+SIZE (ia64sim.zip) = 754344
--- /dev/null
+++ emulators/ia64sim/files/patch-ia64.h
@@ -0,0 +1,30 @@
+--- include/ia64.h.orig	Sun May  6 11:39:29 2001
++++ include/ia64.h	Sun May  6 11:35:10 2001
+@@ -29,6 +29,7 @@
+ #include <ctype.h>
+ #include <string.h>
+ #include <elf.h>
++#include <sys/elf64.h>
+ 
+ #define TRUE 1
+ #define FALSE 0
+@@ -38,7 +39,7 @@
+            0<=lo,hi<=63 and lo<=hi */
+ 
+ #define BITS(x,lo,hi) (      \
+-           (uint32)(x##.q >> lo) &   \
++           (uint32)(x.q >> lo) &   \
+ 	   ( (1<<(hi-lo+1)) - 1 )    \
+ 	   )
+ 
+@@ -72,8 +73,8 @@
+    uint8 b[8];
+ } qword;
+ 
+-#define HI(x)  (x##.d[1])
+-#define LO(x)  (x##.d[0])
++#define HI(x)  (x.d[1])
++#define LO(x)  (x.d[0])
+ 
+ typedef struct {
+    qword dat;
--- /dev/null
+++ emulators/ia64sim/files/patch-makefile.unx
@@ -0,0 +1,8 @@
+--- makefile.unx.orig	Sat Feb 12 22:25:47 2000
++++ makefile.unx	Sun May  6 11:48:13 2001
+@@ -21 +21 @@
+-CFLAGS = -O3 -m486 -fomit-frame-pointer -s -I$(INCDIR)
++CFLAGS += -s -I$(INCDIR)
+@@ -25 +25 @@
+-EXECSRCS = execute.c utils.c f_unit.c b_unit.c x_unit.c  \
++EXECSRCS = elf.c execute.c utils.c f_unit.c b_unit.c x_unit.c  \
--- /dev/null
+++ emulators/ia64sim/files/patch-ia64sim.c
@@ -0,0 +1,21 @@
+--- ia64sim.c.orig	Sun Feb 27 17:20:26 2000
++++ ia64sim.c	Sun May  6 11:51:41 2001
+@@ -779,7 +779,7 @@
+ 
+    uint32 i;
+ 
+-   printf("\nIA64 ISA simulator, version 0.4\n");
++   printf("\nIA64 ISA simulator, version 0.5\n");
+    printf("Memory limits: 0x%08x-0x%08x\n", 0, MEMSIZE-1);
+    printf("Try 'h' for help\n\n");
+ 
+@@ -810,6 +810,9 @@
+    while(1) {
+       printf("IA64sim>> ");
+       fgets(cmd,sizeof(cmd),stdin);
++
++      if (feof(stdin))
++         return 0;
+ 
+       nextchar = cmd;
+       while(*nextchar) *nextchar++ = tolower(*nextchar);


More information about the Midnightbsd-cvs mailing list