aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc/gdb-sim.c
diff options
context:
space:
mode:
Diffstat (limited to 'sim/ppc/gdb-sim.c')
-rw-r--r--sim/ppc/gdb-sim.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sim/ppc/gdb-sim.c b/sim/ppc/gdb-sim.c
index c6ae10e..8cf3638 100644
--- a/sim/ppc/gdb-sim.c
+++ b/sim/ppc/gdb-sim.c
@@ -1284,7 +1284,8 @@ sim_fetch_register (SIM_DESC sd, int regno, unsigned char *buf, int length)
int
-sim_store_register (SIM_DESC sd, int regno, unsigned char *buf, int length)
+sim_store_register (SIM_DESC sd, int regno, const unsigned char *buf,
+ int length)
{
const char *regname = regnum2name (regno);