aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--machine/minit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/machine/minit.c b/machine/minit.c
index 8e3bdb9..e6677e9 100644
--- a/machine/minit.c
+++ b/machine/minit.c
@@ -82,7 +82,7 @@ static void delegate_traps()
write_csr(mideleg, interrupts);
write_csr(medeleg, exceptions);
- assert(read_csr(mideleg) == interrupts);
+ assert((read_csr(mideleg) & interrupts) == interrupts);
assert(read_csr(medeleg) == exceptions);
}