aboutsummaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
Diffstat (limited to 'sim')
-rw-r--r--sim/ppc/ChangeLog6
-rw-r--r--sim/ppc/hw_nvram.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/sim/ppc/ChangeLog b/sim/ppc/ChangeLog
index 7b10055..82844f2 100644
--- a/sim/ppc/ChangeLog
+++ b/sim/ppc/ChangeLog
@@ -1,5 +1,11 @@
2003-06-21 Andrew Cagney <cagney@redhat.com>
+ From Ian Lance Taylor <ian@airs.com>:
+ * hw_nvram.c (hw_nvram_init_address): Correct call to memset--swap
+ second and third arguments.
+
+2003-06-21 Andrew Cagney <cagney@redhat.com>
+
* hw_com.c (hw_com_device_init_data): Check that the output, and
not input file opened. Pointed out by masahino tky3.3web.ne.jp.
diff --git a/sim/ppc/hw_nvram.c b/sim/ppc/hw_nvram.c
index 4c87d05..32308f7 100644
--- a/sim/ppc/hw_nvram.c
+++ b/sim/ppc/hw_nvram.c
@@ -140,7 +140,7 @@ hw_nvram_init_address(device *me)
nvram->memory = zalloc(nvram->sizeof_memory);
}
else
- memset(nvram->memory, nvram->sizeof_memory, 0);
+ memset(nvram->memory, 0, nvram->sizeof_memory);
if (device_find_property(me, "timezone") == NULL)
nvram->timezone = 0;