Index: emu/emu.c =================================================================== RCS file: /home/michael/cvsroot/f-cpu/as/emu/emu.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- emu.c 2002/12/28 18:08:55 1.3 +++ emu.c 2003/01/02 17:42:30 1.4 @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -static const char rcsid[] = "@(#) $Id: emu.c,v 1.3 2002/12/28 18:08:55 michael Exp $"; +static const char rcsid[] = "@(#) $Id: emu.c,v 1.4 2003/01/02 17:42:30 michael Exp $"; #if HAVE_CONFIG_H #include @@ -3759,7 +3759,7 @@ } while (0) /* provide simple I/O via syscall */ -void syscall(U32 opcode) { +void emu_syscall(U32 opcode) { switch (UIMM16) { case 0: fprintf(stderr, "program exited with status %u\n", r(1).C(b,0)); @@ -3959,7 +3959,7 @@ case X(OP_GETI): geti(opcode); return 0; case X(OP_PUTI): puti(opcode); return 0; case X(OP_SYSCALL) | SYSCALL_TRAP: trap(opcode); return 0; - case X(OP_SYSCALL): syscall(opcode); return 0; + case X(OP_SYSCALL): emu_syscall(opcode); return 0; } switch (opcode & 0xffe00000) { /* imm9, r2, r1 */