From 554064594b5fa51c31a4d57917b379233780d18f Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Wed, 24 Jan 2001 13:17:01 +0000 Subject: [PATCH] * interp.c (trap): Implement time. --- sim/sh/ChangeLog | 4 ++++ sim/sh/interp.c | 3 +++ 2 files changed, 7 insertions(+) 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 (); } -- 2.30.2