Skip to content

Commit

Permalink
snRuntime: include global interrupts also for banshee
Browse files Browse the repository at this point in the history
  • Loading branch information
GiannaP committed Aug 7, 2023
1 parent 6fe3d35 commit ae875a0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions sw/snRuntime/api/global_interrupt_decls.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@
inline void snrt_int_sw_clear(uint32_t hartid);

inline void snrt_int_sw_set(uint32_t hartid);

inline uint32_t snrt_int_sw_get(uint32_t hartid);
2 changes: 2 additions & 0 deletions sw/snRuntime/src/global_interrupts.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@
extern void snrt_int_sw_clear(uint32_t hartid);

extern void snrt_int_sw_set(uint32_t hartid);

extern uint32_t snrt_int_sw_get(uint32_t hartid);
2 changes: 1 addition & 1 deletion target/snitch_cluster/sw/runtime/banshee/src/snrt.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#include "perf_cnt.h"
#include "printf.h"
#include "riscv.h"
// #include "snitch_cluster_global_interrupts.h" # what is Banshee equivalent?
#include "snitch_cluster_global_interrupts.h"
#include "ssr.h"
#include "sync.h"
#include "team.h"
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
inline void snrt_int_sw_clear(uint32_t hartid) {
snrt_int_cluster_clr(1 << hartid);
}

inline void snrt_int_sw_set(uint32_t hartid) {
snrt_int_cluster_set(1 << hartid);
}

0 comments on commit ae875a0

Please sign in to comment.