diff options
author | Megan Wachs <megan@sifive.com> | 2017-05-04 05:46:05 -0700 |
---|---|---|
committer | Megan Wachs <megan@sifive.com> | 2017-05-04 05:46:05 -0700 |
commit | 4d5cbec9118cbedf2d4ae5b54acaa22862245a4c (patch) | |
tree | bb197ca9ef8f9265a79485f3a13e4e921a0ff93b /bsp/env/freedom-e300-hifive1/init.c | |
parent | 3a01ac1b7c0e72c04679f0cd6552c4ff0b308863 (diff) |
Update SDK For E31/E51 Coreplex IP Evaluation
Diffstat (limited to 'bsp/env/freedom-e300-hifive1/init.c')
-rw-r--r-- | bsp/env/freedom-e300-hifive1/init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bsp/env/freedom-e300-hifive1/init.c b/bsp/env/freedom-e300-hifive1/init.c index de046cc..621a6e2 100644 --- a/bsp/env/freedom-e300-hifive1/init.c +++ b/bsp/env/freedom-e300-hifive1/init.c @@ -10,14 +10,14 @@ extern void trap_entry(); static unsigned long mtime_lo(void) { - return *(volatile unsigned long *)(CLINT_BASE_ADDR + CLINT_MTIME); + return *(volatile unsigned long *)(CLINT_CTRL_ADDR + CLINT_MTIME); } #ifdef __riscv32 static uint32_t mtime_hi(void) { - return *(volatile uint32_t *)(CLINT_BASE_ADDR + CLINT_MTIME + 4); + return *(volatile uint32_t *)(CLINT_CTRL_ADDR + CLINT_MTIME + 4); } uint64_t get_timer_value() |