Skip to content

Commit b28ca8f

Browse files
Merge branch 'add_mtopi' of github.com:KushalMeghani1644/riscv into add_mtopi
2 parents 1ec34d3 + 202bfb2 commit b28ca8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

riscv/src/register/mtopi.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ impl Mtopi {
5050
///
5151
/// When this returns true, both `interrupt_id()` and `priority()` will return meaningful values.
5252
#[inline]
53-
pub fn has_interrupt(&self) -> bool {
53+
pub fn is_interrupt_pending(&self) -> bool {
5454
self.iid() != 0
5555
}
5656
}

0 commit comments

Comments
 (0)