aboutsummaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1997-05-19 19:55:31 +0000
committerJeff Law <law@redhat.com>1997-05-19 19:55:31 +0000
commit4df7aeb3c54a6c4d932e791f23d71f6ff03ee63c (patch)
treed6063607012b2de9180d410be67968d026c3cf40 /sim
parent2e61a3ad9cb51b24cbb62c0ca1b59913119d45de (diff)
downloadgdb-4df7aeb3c54a6c4d932e791f23d71f6ff03ee63c.zip
gdb-4df7aeb3c54a6c4d932e791f23d71f6ff03ee63c.tar.gz
gdb-4df7aeb3c54a6c4d932e791f23d71f6ff03ee63c.tar.bz2
* interp.c (dispatch): Make this an inline function.
* simops.c (syscall): Use callback->write regardless of what file descriptor we're writing too.
Diffstat (limited to 'sim')
-rw-r--r--sim/mn10300/ChangeLog7
-rw-r--r--sim/mn10300/interp.c2
-rw-r--r--sim/mn10300/simops.c8
3 files changed, 10 insertions, 7 deletions
diff --git a/sim/mn10300/ChangeLog b/sim/mn10300/ChangeLog
index a69a3be..ccfc55e 100644
--- a/sim/mn10300/ChangeLog
+++ b/sim/mn10300/ChangeLog
@@ -1,3 +1,10 @@
+Mon May 19 13:54:22 1997 Jeffrey A Law (law@cygnus.com)
+
+ * interp.c (dispatch): Make this an inline function.
+
+ * simops.c (syscall): Use callback->write regardless of
+ what file descriptor we're writing too.
+
Sun May 18 16:46:31 1997 Jeffrey A Law (law@cygnus.com)
* interp.c (load_mem_big): Remove function. It's now a macro
diff --git a/sim/mn10300/interp.c b/sim/mn10300/interp.c
index cf42f23..affa4ab 100644
--- a/sim/mn10300/interp.c
+++ b/sim/mn10300/interp.c
@@ -145,7 +145,7 @@ hash(insn)
return ((insn & 0xff000000) >> 24) & 0x7f;
}
-static void
+static INLINE void
dispatch (insn, extension, length)
uint32 insn;
uint32 extension;
diff --git a/sim/mn10300/simops.c b/sim/mn10300/simops.c
index ae3c8aa..dc1786b 100644
--- a/sim/mn10300/simops.c
+++ b/sim/mn10300/simops.c
@@ -2931,12 +2931,8 @@ void OP_F020 (insn, extension)
MEMPTR (PARM2), PARM3);
break;
case SYS_write:
- if (PARM1 == 1)
- RETVAL = (int)mn10300_callback->write_stdout (mn10300_callback,
- MEMPTR (PARM2), PARM3);
- else
- RETVAL = (int)mn10300_callback->write (mn10300_callback, PARM1,
- MEMPTR (PARM2), PARM3);
+ RETVAL = (int)mn10300_callback->write (mn10300_callback, PARM1,
+ MEMPTR (PARM2), PARM3);
break;
case SYS_lseek:
RETVAL = mn10300_callback->lseek (mn10300_callback, PARM1, PARM2, PARM3);