diff options
author | Andrew Cagney <cagney@redhat.com> | 1997-09-12 02:44:03 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 1997-09-12 02:44:03 +0000 |
commit | 93e7a1b5b74ce4e5a030378b5f39077aed9d0912 (patch) | |
tree | 7ba8a934d602cd9dae5417f8e943cfffe4ebe87e /sim/common/sim-events.c | |
parent | 11ac69e0139253d10771787a44adfecb9e4bef70 (diff) | |
download | gdb-93e7a1b5b74ce4e5a030378b5f39077aed9d0912.zip gdb-93e7a1b5b74ce4e5a030378b5f39077aed9d0912.tar.gz gdb-93e7a1b5b74ce4e5a030378b5f39077aed9d0912.tar.bz2 |
Add profiling support to v850*.
Diffstat (limited to 'sim/common/sim-events.c')
-rw-r--r-- | sim/common/sim-events.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/sim/common/sim-events.c b/sim/common/sim-events.c index 7139662..564a99d 100644 --- a/sim/common/sim-events.c +++ b/sim/common/sim-events.c @@ -343,6 +343,15 @@ sim_events_time (SIM_DESC sd) } +INLINE_SIM_EVENTS\ +(unsigned long) +sim_events_elapsed_time (SIM_DESC sd) +{ + return (sim_elapsed_time_since (STATE_EVENTS (sd)->resume_wallclock) + + STATE_EVENTS (sd)->elapsed_wallclock); +} + + STATIC_INLINE_SIM_EVENTS\ (void) update_time_from_event (SIM_DESC sd) @@ -865,9 +874,7 @@ sim_watch_valid (SIM_DESC sd, case watch_clock: /* wallclock */ { - unsigned long elapsed_time = - (sim_elapsed_time_since (STATE_EVENTS (sd)->resume_wallclock) - + STATE_EVENTS (sd)->elapsed_wallclock); + unsigned long elapsed_time = sim_events_elapsed_time (sd); return (elapsed_time >= to_do->wallclock); } |