Skip to content

Commit a84b43d

Browse files
committed
fix error in riscv_peripheral::plic_codegen!
1 parent 7b3c186 commit a84b43d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

riscv-peripheral/src/macros.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ macro_rules! plic_codegen {
354354
/// This function determines the current HART ID by reading the [`riscv::register::mhartid`] CSR.
355355
/// Thus, it can only be used in M-mode. For S-mode, use [`PLIC::ctx`] instead.
356356
#[inline]
357-
pub fn ctx_mhartid(&self) -> $crate::plic::CTX<Self> {
357+
pub fn ctx_mhartid() -> $crate::plic::CTX<Self> {
358358
$crate::plic::PLIC::<PLIC>::ctx_mhartid()
359359
}
360360
}

0 commit comments

Comments
 (0)