This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
SH sim: implemented time() syscall
- To: gdb-patches at sources dot redhat dot com
- Subject: SH sim: implemented time() syscall
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 24 Jan 2001 11:16:34 -0200
- Organization: GCC Team, Red Hat
I'm checking this in, approved by Ben Elliston.
Index: sim/sh/ChangeLog
from Alexandre Oliva <aoliva@redhat.com>
* interp.c (trap): Implement time.
Index: sim/sh/interp.c
===================================================================
RCS file: /cvs/src/src/sim/sh/interp.c,v
retrieving revision 1.2
diff -u -p -r1.2 interp.c
--- sim/sh/interp.c 2000/05/15 21:12:42 1.2
+++ sim/sh/interp.c 2001/01/24 13:14:54
@@ -1102,6 +1102,9 @@ trap (i, regs, memory, maskl, maskw, end
strnswap (regs[5], len);
break;
}
+ case SYS_time:
+ regs[0] = get_now ();
+ break;
default:
abort ();
}
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me