summaryrefslogtreecommitdiff
path: root/leon3.c
diff options
context:
space:
mode:
authorJiri Gaisler <jiri@gaisler.se>2020-12-05 17:49:25 +0100
committerJiri Gaisler <jiri@gaisler.se>2020-12-15 15:28:09 +0100
commit36b4b0a9b95a351fc99ca3224503dab9e29af865 (patch)
tree2364018e2cc1e3118672e841b84bc545caf316a8 /leon3.c
parentbb65f4484f9be1818435ca39e95feab35be427aa (diff)
Added support for RISCV32 systems with CLINT/PLIC
Diffstat (limited to 'leon3.c')
-rw-r--r--leon3.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/leon3.c b/leon3.c
index b4f8dad..d1bb52c 100644
--- a/leon3.c
+++ b/leon3.c
@@ -56,11 +56,11 @@ init_sim (void)
{
int i;
- for (i = 0; i < NCPU; i++)
+ for (i = 0; i < ncpu; i++)
grlib_ahbm_add (&leon3s, 0);
grlib_ahbs_add (&apbmst, 0, APBSTART, 0xFFF);
- grlib_ahbs_add (&srctrl, 0, RAM_START, RAM_MASKPP);
+ grlib_ahbs_add (&sdctrl, 0, RAM_START, RAM_MASKPP);
grlib_apb_add (&apbuart, 3, APBSTART + 0x100, 0xFFF);
grlib_apb_add (&irqmp, 0, APBSTART + 0x200, 0xFFF);