Try opensbi without supervisor ext delegation

This commit is contained in:
Rodrigo Arias Mallo 2024-08-01 20:22:43 +02:00
parent cd7eb7179f
commit 038d2e7156
2 changed files with 14 additions and 0 deletions

View File

@ -326,6 +326,7 @@
];
patches = [
./opensbi-timer-debug.patch
./opensbi-dont-delegate.patch
#./ox-alveo-platform-plic.patch
];
});

View File

@ -0,0 +1,13 @@
diff --git a/lib/sbi/sbi_hart.c b/lib/sbi/sbi_hart.c
index c366701..c5b5249 100644
--- a/lib/sbi/sbi_hart.c
+++ b/lib/sbi/sbi_hart.c
@@ -199,7 +199,7 @@ static int delegate_traps(struct sbi_scratch *scratch)
return 0;
/* Send M-mode interrupts and most exceptions to S-mode */
- interrupts = MIP_SSIP | MIP_STIP | MIP_SEIP;
+ interrupts = MIP_SSIP | MIP_STIP;
interrupts |= sbi_pmu_irq_bit();
exceptions = (1U << CAUSE_MISALIGNED_FETCH) | (1U << CAUSE_BREAKPOINT) |