From: Alexandre Oliva Date: Wed, 24 Jan 2001 13:17:01 +0000 (+0000) Subject: * interp.c (trap): Implement time. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=554064594b5fa51c31a4d57917b379233780d18f;p=binutils-gdb.git * interp.c (trap): Implement time. --- diff --git a/sim/sh/ChangeLog b/sim/sh/ChangeLog index ae8773a187f..9839e8dae8c 100644 --- a/sim/sh/ChangeLog +++ b/sim/sh/ChangeLog @@ -1,3 +1,7 @@ +2001-01-24 Alexandre Oliva + + * interp.c (trap): Implement time. + 2000-10-24 Ben Elliston * gencode.c (tab): Delimit strings with commas where applicable. diff --git a/sim/sh/interp.c b/sim/sh/interp.c index 18442279558..7f7ffabb9fc 100644 --- a/sim/sh/interp.c +++ b/sim/sh/interp.c @@ -1102,6 +1102,9 @@ trap (i, regs, memory, maskl, maskw, endianw) strnswap (regs[5], len); break; } + case SYS_time: + regs[0] = get_now (); + break; default: abort (); }