This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

SH sim: implemented time() syscall


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]