1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

Update to version 0.5.

This commit is contained in:
David E. O'Brien 2001-05-06 18:58:14 +00:00
parent 0f886578be
commit 9824e2c862
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=42339
7 changed files with 32 additions and 186 deletions

View File

@ -1,3 +1,4 @@
# ex:ts=8
# Ports collection makefile for: ia64sim
# Date created: Tue Oct 10, 2000
# Whom: David O'Brien (obrien@NUXI.com)
@ -6,20 +7,25 @@
#
PORTNAME= ia64sim
PORTVERSION= 0.2
PORTVERSION= 0.5
CATEGORIES= emulators
MASTER_SITES= http://www.glue.umd.edu/~jasonp/ \
MASTER_SITES= http://www.pacificsites.com/~ccrayne/ \
http://www.glue.umd.edu/~jasonp/ \
http://odin.asgard/
DISTFILES= ${PORTNAME}${EXTRACT_SUFX}
MAINTAINER= obrien@FreeBSD.org
EXTRACT_BEFORE_ARGS= -qLa
WRKSRC= ${WRKDIR}/${PORTNAME}
WRKSRC= ${WRKDIR}/home/chuck/ia64simcc
USE_ZIP= yes
USE_GMAKE= yes
MAKEFILE= makefile.unx
pre-build:
rm -f ${WRKSRC}/obj/*.o
rm -f ${WRKSRC}/ia64sim
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/ia64sim ${LOCALBASE}/bin/ia64sim
.if !defined(NOPORTDOCS)

View File

@ -1 +1 @@
MD5 (ia64sim.zip) = 058971863cdb21554133f89b85265c36
MD5 (ia64sim.zip) = 15d38b90a98afc72cee6797ce7e5c171

View File

@ -1,68 +0,0 @@
$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);

View File

@ -1,22 +0,0 @@
$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 */

View File

@ -0,0 +1,6 @@
--- include/ia64.h.orig Sun May 6 11:39:29 2001
+++ include/ia64.h Sun May 6 11:35:10 2001
@@ -31,2 +31,3 @@
#include <elf.h>
+#include <sys/elf64.h>

View File

@ -1,97 +1,18 @@
--- 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 @@
--- ia64sim.c.orig Sun Feb 27 17:20:26 2000
+++ ia64sim.c Sun May 6 11:51:41 2001
@@ -779,7 +779,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;
}
uint32 i;
- base = strtoll(second, &junk, 0) & ~15;
+ base = strtoq(second, &junk, 0) & ~15;
if(*junk) {
printf("Invalid base address\n");
return;
}
- 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");
- 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 @@
@@ -810,6 +810,9 @@
while(1) {
printf("IA64sim>> ");
gets(cmd);
fgets(cmd,sizeof(cmd),stdin);
+
+ if (feof(stdin))
+ return 0;

View File

@ -1,5 +1,8 @@
--- makefile.unx.orig Wed Mar 8 04:58:52 2000
+++ makefile.unx Sat Mar 10 16:42:01 2001
--- 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 += -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 \