* interp.c (dispatch): Make this an inline function.
authorJeff Law <law@redhat.com>
Mon, 19 May 1997 19:55:31 +0000 (19:55 +0000)
committerJeff Law <law@redhat.com>
Mon, 19 May 1997 19:55:31 +0000 (19:55 +0000)
        * simops.c (syscall): Use callback->write regardless of
        what file descriptor we're writing too.

sim/mn10300/ChangeLog
sim/mn10300/interp.c
sim/mn10300/simops.c

index a69a3be18386fa9a7a05bb7d249aec2200c1084b..ccfc55e8668ee7c1580b941d844c080884e1d5f8 100644 (file)
@@ -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
index cf42f2392f27f5ae083ebeaa7532fcf513fe28d3..affa4ab89d97ec9507db665762b27b0b749fd10d 100644 (file)
@@ -145,7 +145,7 @@ hash(insn)
   return ((insn & 0xff000000) >> 24) & 0x7f;
 }
 
-static void
+static INLINE void
 dispatch (insn, extension, length)
      uint32 insn;
      uint32 extension;
index ae3c8aa9607be62c6bda6bfda4b4101563abc094..dc1786bd4c1785e45a5db3303648458f48cc841d 100644 (file)
@@ -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);