diff options
Diffstat (limited to 'bsp/coreip-s76-rtl')
-rw-r--r-- | bsp/coreip-s76-rtl/metal.h | 9 | ||||
-rw-r--r-- | bsp/coreip-s76-rtl/settings.mk | 4 |
2 files changed, 10 insertions, 3 deletions
diff --git a/bsp/coreip-s76-rtl/metal.h b/bsp/coreip-s76-rtl/metal.h index 8295322..a593efb 100644 --- a/bsp/coreip-s76-rtl/metal.h +++ b/bsp/coreip-s76-rtl/metal.h @@ -5,6 +5,11 @@ #ifdef __METAL_MACHINE_MACROS +#define __METAL_PLIC_SUBINTERRUPTS 128 + +#ifndef __METAL_PLIC_SUBINTERRUPTS +#define __METAL_PLIC_SUBINTERRUPTS 0 +#endif #ifndef __METAL_CLIC_SUBINTERRUPTS #define __METAL_CLIC_SUBINTERRUPTS 0 #endif @@ -17,6 +22,8 @@ #define __METAL_INTERRUPT_CONTROLLER_C000000_INTERRUPTS 1 +#define __METAL_PLIC_SUBINTERRUPTS 128 + #define METAL_MAX_PLIC_INTERRUPTS 1 #define METAL_MAX_CLIC_INTERRUPTS 0 @@ -105,7 +112,7 @@ struct __metal_driver_riscv_plic0 __metal_dt_interrupt_controller_c000000 = { .control_base = 201326592UL, .control_size = 67108864UL, .max_priority = 7UL, - .num_interrupts = 127UL, + .num_interrupts = 128UL, .interrupt_controller = 1, }; diff --git a/bsp/coreip-s76-rtl/settings.mk b/bsp/coreip-s76-rtl/settings.mk index 4d48fc1..37a07af 100644 --- a/bsp/coreip-s76-rtl/settings.mk +++ b/bsp/coreip-s76-rtl/settings.mk @@ -1,5 +1,5 @@ -RISCV_ARCH=rv64imac -RISCV_ABI=lp64 +RISCV_ARCH=rv64imafdc +RISCV_ABI=lp64d RISCV_CMODEL=medany COREIP_MEM_WIDTH=64 |