aboutsummaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>1998-03-22 05:51:57 +0000
committerAndrew Cagney <cagney@redhat.com>1998-03-22 05:51:57 +0000
commitb2846e630d7bc618548783257aed4a7b6e4220d0 (patch)
treeaee0f0bf075e8d7026bcadd272ee65ce38009584 /sim
parent775b309a4ed05c21bb05c2f325da04635bef44b0 (diff)
downloadgdb-b2846e630d7bc618548783257aed4a7b6e4220d0.zip
gdb-b2846e630d7bc618548783257aed4a7b6e4220d0.tar.gz
gdb-b2846e630d7bc618548783257aed4a7b6e4220d0.tar.bz2
Fix typos: Setting trace in wrong function, ME vs HW.
Diffstat (limited to 'sim')
-rw-r--r--sim/common/ChangeLog3
-rw-r--r--sim/common/hw-base.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog
index e454601..abc30d0 100644
--- a/sim/common/ChangeLog
+++ b/sim/common/ChangeLog
@@ -1,5 +1,8 @@
Sun Mar 22 16:45:54 1998 Andrew Cagney <cagney@b1.cygnus.com>
+ * hw-base.c (hw_finish): Move setting of trace level to here.
+ (hw_create): From here.
+
* hw-base.h, hw-base.c (do_hw_attach_regs): Copy function from
../ppc/device_table.c.
diff --git a/sim/common/hw-base.c b/sim/common/hw-base.c
index 2057e90..8a5a299 100644
--- a/sim/common/hw-base.c
+++ b/sim/common/hw-base.c
@@ -475,8 +475,8 @@ hw_finish (struct hw *me)
me->nr_size_cells_of_hw_unit = 1;
/* 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?");
+ if (hw_find_property (me, "trace?") != NULL)
+ me->trace_of_hw_p = hw_find_boolean_property (me, "trace?");
/* Allow the real device to override any methods */
me->base_of_hw->descriptor->to_finish (me);