aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-04-14 07:38:06 +0000
committerMike Frysinger <vapier@gentoo.org>2010-04-14 07:38:06 +0000
commit5558e7e691534636afa28f6bf68bfd83530d8054 (patch)
tree4f830ca8baba1d6598b383d6f82566ef12493cfe /sim/ppc
parente1caee70eebe9b2aad731f87a94237568d6fa9ac (diff)
downloadgdb-5558e7e691534636afa28f6bf68bfd83530d8054.zip
gdb-5558e7e691534636afa28f6bf68bfd83530d8054.tar.gz
gdb-5558e7e691534636afa28f6bf68bfd83530d8054.tar.bz2
sim: constify sim_write source buffer (part 2)
As pointed out by Sandra Loosemore, a bunch of targets define sim_write themselves instead of using the common/ code. So constify them too. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'sim/ppc')
-rw-r--r--sim/ppc/ChangeLog4
-rw-r--r--sim/ppc/sim_calls.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/sim/ppc/ChangeLog b/sim/ppc/ChangeLog
index 183f1e6..f33c2d0e 100644
--- a/sim/ppc/ChangeLog
+++ b/sim/ppc/ChangeLog
@@ -1,3 +1,7 @@
+2010-04-14 Mike Frysinger <vapier@gentoo.org>
+
+ * sim_calls.c (sim_write): Add const to buf arg.
+
2010-02-14 Andreas Schwab <schwab@linux-m68k.org>
* ppc-instructions: Fix missing assignment in last change.
diff --git a/sim/ppc/sim_calls.c b/sim/ppc/sim_calls.c
index 781ff05..276161b 100644
--- a/sim/ppc/sim_calls.c
+++ b/sim/ppc/sim_calls.c
@@ -144,7 +144,7 @@ sim_read (SIM_DESC sd, SIM_ADDR mem, unsigned char *buf, int length)
int
-sim_write (SIM_DESC sd, SIM_ADDR mem, unsigned char *buf, int length)
+sim_write (SIM_DESC sd, SIM_ADDR mem, const unsigned char *buf, int length)
{
int result = psim_write_memory(simulator, MAX_NR_PROCESSORS,
buf, mem, length,