diff options
Diffstat (limited to 'sim/common/sim-events.c')
-rw-r--r-- | sim/common/sim-events.c | 70 |
1 files changed, 35 insertions, 35 deletions
diff --git a/sim/common/sim-events.c b/sim/common/sim-events.c index 804d6c6..444fbe5 100644 --- a/sim/common/sim-events.c +++ b/sim/common/sim-events.c @@ -279,7 +279,7 @@ sim_events_zalloc (SIM_DESC sd) /*-LOCK-*/ sigset_t old_mask; sigset_t new_mask; - sigfillset(&new_mask); + sigfillset (&new_mask); sigprocmask (SIG_SETMASK, &new_mask, &old_mask); #endif new = ZALLOC (sim_event); @@ -523,16 +523,16 @@ sim_events_schedule_vtracef (SIM_DESC sd, new_event->watching = watch_timer; if (fmt == NULL || !ETRACE_P || vasprintf (&new_event->trace, fmt, ap) < 0) new_event->trace = NULL; - insert_sim_event(sd, new_event, delta_time); - ETRACE((_ETRACE, - "event scheduled at %ld - tag 0x%lx - time %ld, handler 0x%lx, data 0x%lx%s%s\n", - (long)sim_events_time(sd), - (long)new_event, - (long)new_event->time_of_event, - (long)new_event->handler, - (long)new_event->data, - (new_event->trace != NULL) ? ", " : "", - (new_event->trace != NULL) ? new_event->trace : "")); + insert_sim_event (sd, new_event, delta_time); + ETRACE ((_ETRACE, + "event scheduled at %ld - tag 0x%lx - time %ld, handler 0x%lx, data 0x%lx%s%s\n", + (long)sim_events_time (sd), + (long)new_event, + (long)new_event->time_of_event, + (long)new_event->handler, + (long)new_event->data, + (new_event->trace != NULL) ? ", " : "", + (new_event->trace != NULL) ? new_event->trace : "")); return new_event; } #endif @@ -551,7 +551,7 @@ sim_events_schedule_after_signal (SIM_DESC sd, /*-LOCK-*/ sigset_t old_mask; sigset_t new_mask; - sigfillset(&new_mask); + sigfillset (&new_mask); sigprocmask (SIG_SETMASK, &new_mask, &old_mask); #endif @@ -578,7 +578,7 @@ sim_events_schedule_after_signal (SIM_DESC sd, ETRACE ((_ETRACE, "signal scheduled at %ld - tag 0x%lx - time %ld, handler 0x%lx, data 0x%lx\n", - (long)sim_events_time(sd), + (long)sim_events_time (sd), (long)new_event, (long)new_event->time_of_event, (long)new_event->handler, @@ -1069,7 +1069,7 @@ sim_events_preprocess (SIM_DESC sd, int events_were_last, int events_were_next) { - sim_events *events = STATE_EVENTS(sd); + sim_events *events = STATE_EVENTS (sd); if (events_were_last) { /* Halted part way through event processing */ @@ -1092,8 +1092,8 @@ INLINE_SIM_EVENTS\ (void) sim_events_process (SIM_DESC sd) { - sim_events *events = STATE_EVENTS(sd); - signed64 event_time = sim_events_time(sd); + sim_events *events = STATE_EVENTS (sd); + signed64 event_time = sim_events_time (sd); /* Clear work_pending before checking nr_held. Clearing work_pending after nr_held (with out a lock could loose an @@ -1110,8 +1110,8 @@ sim_events_process (SIM_DESC sd) /*-LOCK-*/ sigset_t old_mask; sigset_t new_mask; - sigfillset(&new_mask); - sigprocmask(SIG_SETMASK, &new_mask, &old_mask); + sigfillset (&new_mask); + sigprocmask (SIG_SETMASK, &new_mask, &old_mask); #endif for (i = 0; i < events->nr_held; i++) @@ -1126,7 +1126,7 @@ sim_events_process (SIM_DESC sd) #if defined(HAVE_SIGPROCMASK) && defined(SIG_SETMASK) /*-UNLOCK-*/ - sigprocmask(SIG_SETMASK, &old_mask, NULL); + sigprocmask (SIG_SETMASK, &old_mask, NULL); #endif } @@ -1145,14 +1145,14 @@ sim_events_process (SIM_DESC sd) { sim_event_handler *handler = to_do->handler; void *data = to_do->data; - ETRACE((_ETRACE, - "event issued at %ld - tag 0x%lx - handler 0x%lx, data 0x%lx%s%s\n", - (long) event_time, - (long) to_do, - (long) handler, - (long) data, - (to_do->trace != NULL) ? ", " : "", - (to_do->trace != NULL) ? to_do->trace : "")); + ETRACE ((_ETRACE, + "event issued at %ld - tag 0x%lx - handler 0x%lx, data 0x%lx%s%s\n", + (long) event_time, + (long) to_do, + (long) handler, + (long) data, + (to_do->trace != NULL) ? ", " : "", + (to_do->trace != NULL) ? to_do->trace : "")); sim_events_free (sd, to_do); handler (sd, data); } @@ -1173,14 +1173,14 @@ sim_events_process (SIM_DESC sd) void *data = to_do->data; events->queue = to_do->next; update_time_from_event (sd); - ETRACE((_ETRACE, - "event issued at %ld - tag 0x%lx - handler 0x%lx, data 0x%lx%s%s\n", - (long) event_time, - (long) to_do, - (long) handler, - (long) data, - (to_do->trace != NULL) ? ", " : "", - (to_do->trace != NULL) ? to_do->trace : "")); + ETRACE ((_ETRACE, + "event issued at %ld - tag 0x%lx - handler 0x%lx, data 0x%lx%s%s\n", + (long) event_time, + (long) to_do, + (long) handler, + (long) data, + (to_do->trace != NULL) ? ", " : "", + (to_do->trace != NULL) ? to_do->trace : "")); sim_events_free (sd, to_do); handler (sd, data); } |