This commit was generated by cvs2svn to track changes on a CVS vendor
[deliverable/binutils-gdb.git] / sim / ppc / hw_trace.c
index be2c3c4bdb41a8df1670a2d368e29ba73abc1b37..a46483a5191a372eee827080255e4b941e7d835c 100644 (file)
 
    can be used. */
 
-static void
-hw_trace_init_data(device *me)
-{
-  const device_property *prop = device_find_property(me, NULL);
-  while (prop != NULL) {
-    const char *name = prop->name;
-    unsigned32 value = device_find_integer_property(me, name);
-    trace_option(name, value);
-    prop = device_next_property(prop);
-  }
-}
-
 
-/* Hook to allow the (re) initialization of the trace options at any
-   time */
+/* Hook to allow the initialization of the trace options at any time */
 
 static int
 hw_trace_ioctl(device *me,
@@ -79,7 +66,15 @@ hw_trace_ioctl(device *me,
 {
   switch (request) {
   case device_ioctl_set_trace:
-    hw_trace_init_data(me);
+    {
+      const device_property *prop = device_find_property(me, NULL);
+      while (prop != NULL) {
+       const char *name = prop->name;
+       unsigned32 value = device_find_integer_property(me, name);
+       trace_option(name, value);
+       prop = device_next_property(prop);
+      }
+    }
     break;
   default:
     device_error(me, "insupported ioctl request");
@@ -90,7 +85,7 @@ hw_trace_ioctl(device *me,
 
 
 static device_callbacks const hw_trace_callbacks = {
-  { NULL, hw_trace_init_data, }, /* init */
+  { NULL, }, /* init */
   { NULL, }, /* address */
   { NULL, }, /* IO */
   { NULL, }, /* DMA */
This page took 0.023113 seconds and 4 git commands to generate.