diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2001-01-24 13:17:01 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@redhat.com> | 2001-01-24 13:17:01 +0000 |
commit | f1a9af024fad41aeb4e825d1f3c58c0a8e88d956 (patch) | |
tree | 3a2ae85a0576dc98972a386d14efa333fb871738 | |
parent | bcf5e0eadd40a5265965059fe54d96ff441f3e58 (diff) | |
download | gdb-f1a9af024fad41aeb4e825d1f3c58c0a8e88d956.tar.gz |
* interp.c (trap): Implement time.
-rw-r--r-- | sim/sh/ChangeLog | 4 | ||||
-rw-r--r-- | sim/sh/interp.c | 3 |
2 files changed, 7 insertions, 0 deletions
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 <aoliva@redhat.com> + + * interp.c (trap): Implement time. + 2000-10-24 Ben Elliston <bje@redhat.com> * 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 (); } |