diff options
author | David E. O'Brien <obrien@FreeBSD.org> | 2000-10-10 23:53:19 +0000 |
---|---|---|
committer | David E. O'Brien <obrien@FreeBSD.org> | 2000-10-10 23:53:19 +0000 |
commit | 9835622dad9c12607b4927a5bd29d076666a5d08 (patch) | |
tree | 847f31a35c25be5559a22835fdea75b3ca5aea2e /emulators/ia64sim/files | |
parent | Use PLIST_SUB to only include curses.h when OSVERSION >= 400000. (It (diff) |
IA64 simulator (Intel(R) Architecture 64).
Obtained from: NetBSD (parts)
Notes
Notes:
svn path=/head/; revision=33691
Diffstat (limited to 'emulators/ia64sim/files')
-rw-r--r-- | emulators/ia64sim/files/HOLD.patch-ia64sim.c | 68 | ||||
-rw-r--r-- | emulators/ia64sim/files/patch-assemble.c | 22 | ||||
-rw-r--r-- | emulators/ia64sim/files/patch-ia64sim.c | 100 | ||||
-rw-r--r-- | emulators/ia64sim/files/patch-makefile.unx | 13 |
4 files changed, 203 insertions, 0 deletions
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 + |