aboutsummaryrefslogtreecommitdiff
path: root/sim/common/sim-reg.c
diff options
context:
space:
mode:
Diffstat (limited to 'sim/common/sim-reg.c')
-rw-r--r--sim/common/sim-reg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/common/sim-reg.c b/sim/common/sim-reg.c
index 756ad26..54ce562 100644
--- a/sim/common/sim-reg.c
+++ b/sim/common/sim-reg.c
@@ -45,7 +45,7 @@ sim_fetch_register (SIM_DESC sd, int rn, unsigned char *buf, int length)
cpus. */
int
-sim_store_register (SIM_DESC sd, int rn, unsigned char *buf, int length)
+sim_store_register (SIM_DESC sd, int rn, const unsigned char *buf, int length)
{
SIM_CPU *cpu = STATE_CPU (sd, 0);