aboutsummaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorAnthony Green <green@redhat.com>2005-03-25 20:40:02 +0000
committerAnthony Green <green@redhat.com>2005-03-25 20:40:02 +0000
commit170cd118a9e2169798247e70160f5a638b516661 (patch)
tree436ad208cacaf0e2adb115e8533b3ea36cd71590 /sim
parent7e813ac51f6ea5e3d9ffd1597db564ea23c49d27 (diff)
downloadgdb-170cd118a9e2169798247e70160f5a638b516661.zip
gdb-170cd118a9e2169798247e70160f5a638b516661.tar.gz
gdb-170cd118a9e2169798247e70160f5a638b516661.tar.bz2
Fix memset thinkos.
Diffstat (limited to 'sim')
-rw-r--r--sim/ppc/ChangeLog4
-rw-r--r--sim/ppc/tree.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/sim/ppc/ChangeLog b/sim/ppc/ChangeLog
index 7b259e6..5b5d417 100644
--- a/sim/ppc/ChangeLog
+++ b/sim/ppc/ChangeLog
@@ -1,3 +1,7 @@
+2005-03-25 Anthony Green <green@redhat.com>
+
+ * tree.c (parse_reg_property): Fix memset usage.
+
2005-03-23 Mark Kettenis <kettenis@gnu.org>
* configure: Regenerate.
diff --git a/sim/ppc/tree.c b/sim/ppc/tree.c
index 220c62c..d4cfb71 100644
--- a/sim/ppc/tree.c
+++ b/sim/ppc/tree.c
@@ -539,7 +539,7 @@ parse_reg_property(device *current,
if (device_nr_size_cells(bus) > 0)
chp = parse_size(current, bus, chp, &regs[reg_nr].size);
else
- memset(&regs[reg_nr].size, sizeof (&regs[reg_nr].size), 0);
+ memset(&regs[reg_nr].size, 0, sizeof (&regs[reg_nr].size));
}
/* create it */