From f9cbceb6b756ca1dea8faddefe87b2718086018c Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Thu, 27 Jul 2000 11:49:07 +0000 Subject: [PATCH] 2000-06-25 Stephane Carrez * nrun.c (main): Print the simulator statistics only in verbose mode. * hw-properties.h (hw_find_integer_array_property): Fix prototype (use signed_cell). --- sim/common/ChangeLog | 6 ++++++ sim/common/hw-properties.h | 2 +- sim/common/nrun.c | 3 ++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index eb07b9204b1..ef7b8eb5ab3 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,5 +1,11 @@ Thu Jul 27 20:37:47 2000 Andrew Cagney + From 2000-06-25 Stephane Carrez : + * nrun.c (main): Print the simulator statistics only in + verbose mode. + * hw-properties.h (hw_find_integer_array_property): Fix + prototype (use signed_cell). + From 2000-06-25 Stephane Carrez : * sim-events.c (sim_events_remain_time): New function returning the time that remains before the event is raised. diff --git a/sim/common/hw-properties.h b/sim/common/hw-properties.h index 511fba34daa..198878fb06b 100644 --- a/sim/common/hw-properties.h +++ b/sim/common/hw-properties.h @@ -166,7 +166,7 @@ int hw_find_integer_array_property (struct hw *me, const char *property, unsigned index, - signed_word *integer); + signed_cell *integer); diff --git a/sim/common/nrun.c b/sim/common/nrun.c index c5b43a25eed..ef25d680915 100644 --- a/sim/common/nrun.c +++ b/sim/common/nrun.c @@ -165,7 +165,8 @@ main (int argc, char **argv) } /* Print any stats the simulator collected. */ - sim_info (sd, 0); + if (STATE_VERBOSE_P (sd)) + sim_info (sd, 0); /* Shutdown the simulator. */ sim_close (sd, 0); -- 2.30.2