implements halt using WFI if hartid!=0 and multicore

This commit is contained in:
2025-12-14 17:12:42 +01:00
parent be32d2467c
commit 925f08e0b9
2 changed files with 8 additions and 2 deletions

5
env/riscv_vp/init.c vendored
View File

@@ -103,7 +103,10 @@ void __attribute__((weak)) _init() {
while(i < NUM_INTERRUPTS) {
localISR[i++] = default_handler;
}
#endif
#if defined(NUM_HARTS) && NUM_HARTS > 1
for(int i = 1; i < NUM_HARTS; ++i)
set_aclint_msip(aclint, i, 1);
#endif
}