aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc/tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'sim/ppc/tree.c')
-rw-r--r--sim/ppc/tree.c2
1 files changed, 1 insertions, 1 deletions
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 */