aboutsummaryrefslogtreecommitdiff
path: root/sim/mn10300
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>1997-04-17 06:05:19 +0000
committerAndrew Cagney <cagney@redhat.com>1997-04-17 06:05:19 +0000
commit87e43259f1f31bb1de748139bb56161d99c44962 (patch)
tree99bef4aecfba88423d2801356e731c186b14e94b /sim/mn10300
parenta895901a15f2a103b51052cb1884ada96fd88690 (diff)
downloadgdb-87e43259f1f31bb1de748139bb56161d99c44962.zip
gdb-87e43259f1f31bb1de748139bb56161d99c44962.tar.gz
gdb-87e43259f1f31bb1de748139bb56161d99c44962.tar.bz2
Cleanups to compile under FreeBSD
Diffstat (limited to 'sim/mn10300')
-rw-r--r--sim/mn10300/ChangeLog10
-rw-r--r--sim/mn10300/simops.c10
2 files changed, 19 insertions, 1 deletions
diff --git a/sim/mn10300/ChangeLog b/sim/mn10300/ChangeLog
index c9090ed..8f83302 100644
--- a/sim/mn10300/ChangeLog
+++ b/sim/mn10300/ChangeLog
@@ -1,3 +1,13 @@
+Wed Apr 16 19:30:44 1997 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * simops.c (OP_F020): SYS_execv, SYS_time, SYS_times, SYS_utime
+ only include if implemented by host.
+ (OP_F020): Typecast arg passed to time function;
+
+Mon Apr 7 23:57:49 1997 Jeffrey A Law (law@cygnus.com)
+
+ * simops.c (syscall): Handle new mn10300 calling conventions.
+
Mon Apr 7 15:45:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
* configure: Regenerated to track ../common/aclocal.m4 changes.
diff --git a/sim/mn10300/simops.c b/sim/mn10300/simops.c
index 27f6fda..5f9fc92 100644
--- a/sim/mn10300/simops.c
+++ b/sim/mn10300/simops.c
@@ -2920,10 +2920,12 @@ void OP_F020 (insn, extension)
RETVAL = execve (MEMPTR (PARM1), (char **) MEMPTR (PARM2),
(char **)MEMPTR (PARM3));
break;
+#ifdef SYS_execv
case SYS_execv:
RETVAL = execve (MEMPTR (PARM1), (char **) MEMPTR (PARM2), NULL);
break;
#endif
+#endif
case SYS_read:
RETVAL = mn10300_callback->read (mn10300_callback, PARM1,
@@ -2986,9 +2988,12 @@ void OP_F020 (insn, extension)
case SYS_chmod:
RETVAL = chmod (MEMPTR (PARM1), PARM2);
break;
+#ifdef SYS_time
case SYS_time:
- RETVAL = time (MEMPTR (PARM1));
+ RETVAL = time ((void*) MEMPTR (PARM1));
break;
+#endif
+#ifdef SYS_times
case SYS_times:
{
struct tms tms;
@@ -2999,6 +3004,7 @@ void OP_F020 (insn, extension)
store_mem (PARM1 + 12, 4, tms.tms_cstime);
break;
}
+#endif
case SYS_gettimeofday:
{
struct timeval t;
@@ -3010,11 +3016,13 @@ void OP_F020 (insn, extension)
store_mem (PARM2 + 4, 4, tz.tz_dsttime);
break;
}
+#ifdef SYS_utime
case SYS_utime:
/* Cast the second argument to void *, to avoid type mismatch
if a prototype is present. */
RETVAL = utime (MEMPTR (PARM1), (void *) MEMPTR (PARM2));
break;
+#endif
default:
abort ();
}