aboutsummaryrefslogtreecommitdiff
path: root/emulators/spim/files
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>1996-10-30 01:58:56 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>1996-10-30 01:58:56 +0000
commit196a4cf5d1719a0c0602ce2b652e9614b4e2d915 (patch)
tree27c22f9e4dc3cf820ba1e73ac2607ccf559f9a4b /emulators/spim/files
parentd7b68f6d2537942a8e65b241ab21e3054f788330 (diff)
downloadports-196a4cf5d1719a0c0602ce2b652e9614b4e2d915.tar.gz
ports-196a4cf5d1719a0c0602ce2b652e9614b4e2d915.zip
Notes
Diffstat (limited to 'emulators/spim/files')
-rw-r--r--emulators/spim/files/patch-0139
-rw-r--r--emulators/spim/files/patch-0211
-rw-r--r--emulators/spim/files/patch-0367
3 files changed, 117 insertions, 0 deletions
diff --git a/emulators/spim/files/patch-01 b/emulators/spim/files/patch-01
new file mode 100644
index 000000000000..0c877164e959
--- /dev/null
+++ b/emulators/spim/files/patch-01
@@ -0,0 +1,39 @@
+--- Imakefile.orig Tue Oct 10 10:20:07 1995
++++ Imakefile Tue Oct 29 17:19:52 1996
+@@ -57,13 +57,13 @@
+ #
+
+ # Full path for directory that will hold the trap handler file:
+-TRAP_DIR = /usr/unsup/lib
++TRAP_DIR = $(PREFIX)/share/spim
+
+ # Full path for the directory that will hold the executable files:
+-BIN_DIR = /usr/unsup/bin
++BIN_DIR = $(PREFIX)/bin
+
+ # Full path for the directory that will hold the man files:
+-MAN_DIR = /var/unsup/man
++MAN_DIR = $(PREFIX)/man/man1
+
+
+ # If you have flex, use it instead of lex. If you use flex, define this
+@@ -163,8 +163,8 @@
+ NormalProgramTarget(cl-spim_sub,$(CLOBJS),,,)
+ NormalProgramTarget(cl-xspim_sub,$(XCLOBJS),$(DEPLIBS),$(LOCALLIBS),$(SYSLIBS))
+
+-InstallProgram(spim,$(BIN_DIR))
+-InstallProgram(xspim,$(BIN_DIR))
++InstallProgram(cl-spim,$(BIN_DIR))
++InstallProgram(cl-xspim,$(BIN_DIR))
+ InstallManPage(spim,$(MAN_DIR))
+ InstallManPage(xspim,$(MAN_DIR))
+ InstallNonExec(trap.handler,$(TRAP_DIR))
+@@ -290,7 +290,7 @@
+ mv -f lex.yy.c.xx lex.yy.c
+
+ depend::
+- makedepend -w10 *.c
++ makedepend -w10 -I$(X11BASE)/include *.c
+
+ #
+ # DO NOT DELETE THIS LINE -- make depend depends on it.
diff --git a/emulators/spim/files/patch-02 b/emulators/spim/files/patch-02
new file mode 100644
index 000000000000..dcc77703eaa3
--- /dev/null
+++ b/emulators/spim/files/patch-02
@@ -0,0 +1,11 @@
+--- cl-except.h.orig Fri Aug 25 07:05:25 1995
++++ cl-except.h Mon Oct 28 23:34:02 1996
+@@ -25,7 +25,7 @@
+ #define _BSD_SIGNALS
+ #endif
+
+-#include <syscall.h>
++#include <sys/syscall.h>
+ #include <signal.h>
+
+ /* gdb-style for tracking each signal */
diff --git a/emulators/spim/files/patch-03 b/emulators/spim/files/patch-03
new file mode 100644
index 000000000000..9d2c6e1418d7
--- /dev/null
+++ b/emulators/spim/files/patch-03
@@ -0,0 +1,67 @@
+--- cl-except.c.orig Fri Aug 25 07:13:05 1995
++++ cl-except.c Tue Oct 29 00:37:44 1996
+@@ -46,6 +46,7 @@
+ /* Exported Variables: */
+
+ mem_addr breakpoint_reinsert; /* !0 -> reinsert break at this address */
++spim_proc proc; /* spim's signal tracking structure */
+
+
+ /* Imported Variables: */
+@@ -67,14 +68,14 @@
+ #ifdef __STDC__
+ static void intercept_signals (int sig, int code, struct sigcontext *scp);
+ static mem_addr compute_branch_target (instruction *inst);
+-static void psignal (int sig);
++static void spim_psignal (int sig);
+ static int issig (void);
+ static int psig (void);
+ static void sendsig (void);
+ #else
+ static void intercept_signals ();
+ static mem_addr compute_branch_target ();
+-static void psignal ();
++static void spim_psignal ();
+ static int issig ();
+ static int psig ();
+ static void sendsig ();
+@@ -266,7 +267,7 @@
+
+ else if (retval == 0)
+ /* bad system call --> turn into a signal */
+- psignal (excpt_handler[SYSCALL_EXCPT].sig);
++ spim_psignal (excpt_handler[SYSCALL_EXCPT].sig);
+
+ retval = !retval; /* retval == 1 -> syscall ok;
+ * retval == 0 -> syscall bad */
+@@ -286,7 +287,7 @@
+ case IBUS_EXCPT:
+ case DBUS_EXCPT:
+ case CPU_EXCPT:
+- psignal (excpt_handler[excpt_code].sig);
++ spim_psignal (excpt_handler[excpt_code].sig);
+ break;
+
+
+@@ -456,7 +457,7 @@
+ }
+ else if (spim_related_sig & (1 << sig))
+ cycle_steps = 0;
+- else psignal (sig);
++ else spim_psignal (sig);
+ }
+
+
+@@ -466,10 +467,10 @@
+
+ #ifdef __STDC__
+ static void
+-psignal (int sig)
++spim_psignal (int sig)
+ #else
+ static void
+-psignal (sig)
++spim_psignal (sig)
+ int sig;
+ #endif
+ {