diff options
author | Bunnaroath Sou <35707615+bsousi5@users.noreply.github.com> | 2019-03-22 11:03:01 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-22 11:03:01 -0700 |
commit | aeb8cfb4769080b1b3ce5cf0af8be67a9087ece7 (patch) | |
tree | 8879e2b142e86e55d6f60c393f218d1e87fc9cf6 /bsp/coreip-s54-rtl | |
parent | 12355e0034f6b46c1026acde8dfacc423d3864f2 (diff) | |
parent | a9f41bbbb4cbdc1f7bd732effc772fc156c9bc97 (diff) |
Merge pull request #212 from sifive/floating-pt
Pickup floating point support from freedom-metal
Diffstat (limited to 'bsp/coreip-s54-rtl')
-rw-r--r-- | bsp/coreip-s54-rtl/metal.default.lds | 1 | ||||
-rw-r--r-- | bsp/coreip-s54-rtl/metal.h | 9 | ||||
-rw-r--r-- | bsp/coreip-s54-rtl/metal.ramrodata.lds | 1 | ||||
-rw-r--r-- | bsp/coreip-s54-rtl/metal.scratchpad.lds | 1 | ||||
-rw-r--r-- | bsp/coreip-s54-rtl/settings.mk | 4 |
5 files changed, 10 insertions, 6 deletions
diff --git a/bsp/coreip-s54-rtl/metal.default.lds b/bsp/coreip-s54-rtl/metal.default.lds index efa595f..a997b8b 100644 --- a/bsp/coreip-s54-rtl/metal.default.lds +++ b/bsp/coreip-s54-rtl/metal.default.lds @@ -37,7 +37,6 @@ SECTIONS *(.text.unlikely .text.unlikely.*) *(.text.startup .text.startup.*) *(.text .text.*) - *(.itim .itim.*) *(.gnu.linkonce.t.*) } >flash AT>flash :flash diff --git a/bsp/coreip-s54-rtl/metal.h b/bsp/coreip-s54-rtl/metal.h index e094a58..4ff8a06 100644 --- a/bsp/coreip-s54-rtl/metal.h +++ b/bsp/coreip-s54-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 @@ -115,7 +122,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-s54-rtl/metal.ramrodata.lds b/bsp/coreip-s54-rtl/metal.ramrodata.lds index de23402..23aef82 100644 --- a/bsp/coreip-s54-rtl/metal.ramrodata.lds +++ b/bsp/coreip-s54-rtl/metal.ramrodata.lds @@ -137,7 +137,6 @@ SECTIONS *(.text.startup .text.startup.*) *(.text .text.*) *(.gnu.linkonce.t.*) - *(.itim .itim.*) } >flash AT>flash :flash diff --git a/bsp/coreip-s54-rtl/metal.scratchpad.lds b/bsp/coreip-s54-rtl/metal.scratchpad.lds index 8ead4a8..c789249 100644 --- a/bsp/coreip-s54-rtl/metal.scratchpad.lds +++ b/bsp/coreip-s54-rtl/metal.scratchpad.lds @@ -37,7 +37,6 @@ SECTIONS *(.text.unlikely .text.unlikely.*) *(.text.startup .text.startup.*) *(.text .text.*) - *(.itim .itim.*) *(.gnu.linkonce.t.*) } >ram AT>ram :ram diff --git a/bsp/coreip-s54-rtl/settings.mk b/bsp/coreip-s54-rtl/settings.mk index 4d48fc1..37a07af 100644 --- a/bsp/coreip-s54-rtl/settings.mk +++ b/bsp/coreip-s54-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 |