2000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
authorAndrew Cagney <cagney@redhat.com>
Thu, 27 Jul 2000 11:49:07 +0000 (11:49 +0000)
committerAndrew Cagney <cagney@redhat.com>
Thu, 27 Jul 2000 11:49:07 +0000 (11:49 +0000)
        * 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
sim/common/hw-properties.h
sim/common/nrun.c

index eb07b92..ef7b8eb 100644 (file)
@@ -1,6 +1,12 @@
 Thu Jul 27 20:37:47 2000  Andrew Cagney  <cagney@b1.cygnus.com>
 
        From 2000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
+       * 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 <Stephane.Carrez@worldnet.fr>:
        * sim-events.c (sim_events_remain_time): New function returning
        the time that remains before the event is raised.
        * hw-events.c (hw_event_remain_time): Likewise.
index 511fba3..198878f 100644 (file)
@@ -166,7 +166,7 @@ int hw_find_integer_array_property
 (struct hw *me,
  const char *property,
  unsigned index,
- signed_word *integer);
+ signed_cell *integer);
 
 
 
index c5b43a2..ef25d68 100644 (file)
@@ -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);