update copyright year range in GDB files
[deliverable/binutils-gdb.git] / sim / ppc / hw_trace.c
index be2c3c4bdb41a8df1670a2d368e29ba73abc1b37..9490bfb97f4a8762631c2e5902527611fafd3813 100644 (file)
@@ -4,7 +4,7 @@
     
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
-    the Free Software Foundation; either version 2 of the License, or
+    the Free Software Foundation; either version 3 of the License, or
     (at your option) any later version.
     
     This program is distributed in the hope that it will be useful,
@@ -13,8 +13,7 @@
     GNU General Public License for more details.
     
     You should have received a copy of the GNU General Public License
-    along with this program; if not, write to the Free Software
-    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+    along with this program; if not, see <http://www.gnu.org/licenses/>.
     
     */
 
 
    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 +65,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 +84,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 */
@@ -105,4 +99,4 @@ const device_descriptor hw_trace_device_descriptor[] = {
   { NULL },
 };
 
-#endif _HW_TRACE_C_
+#endif /* _HW_TRACE_C_ */
This page took 0.030977 seconds and 4 git commands to generate.