* interp.c (dispatch): Make this an inline function.

* simops.c (syscall): Use callback->write regardless of
        what file descriptor we're writing too.
This commit is contained in:
Jeff Law 1997-05-19 19:55:31 +00:00
parent 2e61a3ad9c
commit 4df7aeb3c5
3 changed files with 10 additions and 7 deletions

View 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) 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 * interp.c (load_mem_big): Remove function. It's now a macro

View file

@ -145,7 +145,7 @@ hash(insn)
return ((insn & 0xff000000) >> 24) & 0x7f; return ((insn & 0xff000000) >> 24) & 0x7f;
} }
static void static INLINE void
dispatch (insn, extension, length) dispatch (insn, extension, length)
uint32 insn; uint32 insn;
uint32 extension; uint32 extension;

View file

@ -2931,10 +2931,6 @@ void OP_F020 (insn, extension)
MEMPTR (PARM2), PARM3); MEMPTR (PARM2), PARM3);
break; break;
case SYS_write: 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, RETVAL = (int)mn10300_callback->write (mn10300_callback, PARM1,
MEMPTR (PARM2), PARM3); MEMPTR (PARM2), PARM3);
break; break;