瀏覽代碼

Fix Typos: __read_pmpcfg3 to __write_pmpcfg3

dkhayes117 3 年之前
父節點
當前提交
a1787582a0
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/register/pmpcfgx.rs

+ 1 - 1
src/register/pmpcfgx.rs

@@ -161,7 +161,7 @@ pub mod pmpcfg3 {
     use bit_field::BitField;
 
     read_csr_as!(Pmpcsr, 0x3A3, __read_pmpcfg3);
-    write_csr_as_usize_rv32!(0x3A3, __read_pmpcfg3);
+    write_csr_as_usize_rv32!(0x3A3, __write_pmpcfg3);
     set!(0x3A3, __set_pmpcfg3);
     clear!(0x3A3, __clear_pmpcfg3);