aboutsummaryrefslogtreecommitdiff
path: root/sim/common/hw-base.c
diff options
context:
space:
mode:
Diffstat (limited to 'sim/common/hw-base.c')
-rw-r--r--sim/common/hw-base.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sim/common/hw-base.c b/sim/common/hw-base.c
index 495f96d..ad17df4 100644
--- a/sim/common/hw-base.c
+++ b/sim/common/hw-base.c
@@ -442,6 +442,10 @@ hw_create (SIM_DESC sd,
}
}
+ /* Fill in the (hopefully) defined trace variable */
+ if (hw_find_property (hw, "trace?") != NULL)
+ hw->trace_of_hw_p = hw_find_boolean_property (hw, "trace?");
+
/* Attach dummy ports */
set_hw_ports (hw, empty_hw_ports);
set_hw_port_event (hw, panic_hw_port_event);