aboutsummaryrefslogtreecommitdiff
path: root/sim/d10v
diff options
context:
space:
mode:
authorMark Alexander <marka@cygnus>1996-09-04 11:51:06 +0000
committerMark Alexander <marka@cygnus>1996-09-04 11:51:06 +0000
commit8719be26c4add30495893b3064cc422cd033046e (patch)
tree8dc79fadaf55e5bf40cdd75c85c756c024026d60 /sim/d10v
parente73b6ae6344c58f5a10ecbf1e0f3ffe8005424b8 (diff)
downloadgdb-8719be26c4add30495893b3064cc422cd033046e.zip
gdb-8719be26c4add30495893b3064cc422cd033046e.tar.gz
gdb-8719be26c4add30495893b3064cc422cd033046e.tar.bz2
* simops.c: Include correct syscall.h for d10v, not host's.
Fix #ifdef SYS_stat.
Diffstat (limited to 'sim/d10v')
-rw-r--r--sim/d10v/ChangeLog15
-rw-r--r--sim/d10v/simops.c8
2 files changed, 19 insertions, 4 deletions
diff --git a/sim/d10v/ChangeLog b/sim/d10v/ChangeLog
index a1c8f4e..cef1393 100644
--- a/sim/d10v/ChangeLog
+++ b/sim/d10v/ChangeLog
@@ -1,3 +1,18 @@
+Wed Sep 04 04:45:34 1996 Mark Alexander <marka@cygnus.com>
+
+ * simops.c: Include correct syscall.h for d10v, not host's.
+ Fix #ifdef SYS_stat.
+
+Tue Sep 3 14:00:04 1996 Michael Meissner <meissner@tiktok.cygnus.com>
+
+ * simops.c (OP_5F00): Wrap all SYS_xxx traps with #ifdef.
+ Add trap 2 to be printf and trap 3 to be putchar.
+
+Wed Aug 28 21:42:34 1996 Mark Alexander <marka@cygnus.com>
+
+ * Makefile.in, d10v_sim.h, interp.c, simops.c: Add support
+ for low-level system calls.
+
Wed Aug 28 17:33:19 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
* Makefile.in, d10v_sim.h, interp.c: Fix byte-order problems.
diff --git a/sim/d10v/simops.c b/sim/d10v/simops.c
index 2c825a5..3add77c 100644
--- a/sim/d10v/simops.c
+++ b/sim/d10v/simops.c
@@ -6,7 +6,7 @@
#include "d10v_sim.h"
#include "simops.h"
-#include "syscall.h"
+#include "sys/syscall.h"
/* #define DEBUG 1 */
@@ -2259,8 +2259,8 @@ OP_5F00 ()
break;
#endif
-#ifdef SYS_stat: /* added at hmsi *
- case SYS_stat: /* added at hmsi */
+#ifdef SYS_stat
+ case SYS_stat:
/* stat system call */
{
struct stat host_stat;
@@ -2325,7 +2325,7 @@ OP_5F00 ()
/* Trap 2 calls printf */
{
char *fstr = State.regs[2] + State.imem;
- printf (fstr,State.regs[3],State.regs[4],State.regs[5]);
+ printf (fstr, (short)State.regs[3], (short)State.regs[4], (short)State.regs[5]);
break;
}