summaryrefslogtreecommitdiff
path: root/leon3.c
diff options
context:
space:
mode:
authorJiri Gaisler <jiri@gaisler.se>2019-06-11 10:39:44 +0200
committerJiri Gaisler <jiri@gaisler.se>2019-06-11 10:39:44 +0200
commitda44b0fa23e3a48ce1f98f7dc2b16fd91af608a9 (patch)
tree948e4706be3ea1f62859bb234d4ecbc677a10530 /leon3.c
parentad36bf14ca7293a253150f13505b174ca9a5d1ea (diff)
Avoid array out of bounds warning on RISC-V
Diffstat (limited to 'leon3.c')
-rw-r--r--leon3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/leon3.c b/leon3.c
index f2b0127..4d6ce4a 100644
--- a/leon3.c
+++ b/leon3.c
@@ -1180,7 +1180,7 @@ boot_init (void)
sregs[i].r[30] = RAM_END - (i * 0x20000);
sregs[i].r[14] = sregs[i].r[30] - 96 * 4;
sregs[i].cache_ctrl = 0x81000f;
- sregs[i].g[2] = sregs[i].r[30]; /* sp on RISCV-V */
+ sregs[i].r[2] = sregs[i].r[30]; /* sp on RISCV-V */
}
}