aboutsummaryrefslogtreecommitdiff
path: root/sim/riscv/sim-main.c
diff options
context:
space:
mode:
Diffstat (limited to 'sim/riscv/sim-main.c')
-rw-r--r--sim/riscv/sim-main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/riscv/sim-main.c b/sim/riscv/sim-main.c
index 5932c0d..1cf7111 100644
--- a/sim/riscv/sim-main.c
+++ b/sim/riscv/sim-main.c
@@ -1054,7 +1054,7 @@ reg_fetch (sim_cpu *cpu, int rn, unsigned char *buf, int len)
}
static int
-reg_store (sim_cpu *cpu, int rn, unsigned char *buf, int len)
+reg_store (sim_cpu *cpu, int rn, const unsigned char *buf, int len)
{
if (len <= 0 || len > sizeof (unsigned_word))
return -1;