Do top level sim-hw module for device tree.
[deliverable/binutils-gdb.git] / sim / common / hw-device.c
index 3f5719082385bf39941512a48ab7950a38af064b..55968d871df065f38bbc95b7d76b7239b4130b93 100644 (file)
@@ -87,6 +87,22 @@ hw_abort (struct hw *me,
   sim_io_error (sd, "%s", "");
 }
 
+void
+hw_trace (struct hw *me,
+         const char *fmt,
+         ...)
+{
+  if (hw_trace_p (me)) /* to be sure, to be sure */
+    {
+      va_list ap;
+      va_start (ap, fmt);
+      sim_io_eprintf (hw_system (me), "%s: ", hw_path (me));
+      sim_io_evprintf (hw_system (me), fmt, ap);
+      sim_io_eprintf (hw_system (me), "\n");
+      va_end (ap);
+    }
+}
+
 \f
 /* The event queue abstraction (for devices) */
 
This page took 0.023738 seconds and 4 git commands to generate.