Browse Source

tests: add TODOs on snapshot_set_shmem function

Signed-off-by: Zhouqi Jiang <luojia@hust.edu.cn>
Zhouqi Jiang 5 months ago
parent
commit
8ebb0fbdc0
2 changed files with 4 additions and 0 deletions
  1. 2 0
      src/traits.rs
  2. 2 0
      tests/build-full.rs

+ 2 - 0
src/traits.rs

@@ -255,6 +255,7 @@ pub fn _rustsbi_pmu<T: crate::Pmu>(pmu: &T, param: [usize; 6], function: usize)
                 spec::pmu::COUNTER_STOP => pmu.counter_stop(param0, param1, param2),
                 spec::pmu::COUNTER_FW_READ => pmu.counter_fw_read(param0),
                 spec::pmu::COUNTER_FW_READ_HI => pmu.counter_fw_read_hi(param0),
+                // TODO spec::pmu::SNAPSHOT_SET_SHMEM => pmu.snapshot_set_shmem(...)
                 _ => SbiRet::not_supported(),
             }
         }
@@ -278,6 +279,7 @@ pub fn _rustsbi_pmu<T: crate::Pmu>(pmu: &T, param: [usize; 6], function: usize)
                 spec::pmu::COUNTER_STOP => pmu.counter_stop(param0, param1, param2),
                 spec::pmu::COUNTER_FW_READ => pmu.counter_fw_read(param0),
                 spec::pmu::COUNTER_FW_READ_HI => pmu.counter_fw_read_hi(param0),
+                // TODO spec::pmu::SNAPSHOT_SET_SHMEM => pmu.snapshot_set_shmem(...)
                 _ => SbiRet::not_supported(),
             }
         }

+ 2 - 0
tests/build-full.rs

@@ -176,6 +176,7 @@ fn generated_extensions() {
     assert_eq!(sbi.handle_ecall(0x504D55, 4, [0; 6]), SbiRet::success(22));
     assert_eq!(sbi.handle_ecall(0x504D55, 5, [0; 6]), SbiRet::success(23));
     assert_eq!(sbi.handle_ecall(0x504D55, 6, [0; 6]), SbiRet::success(24));
+    // TODO eid and fid of snapshot_set_shmem
     assert_eq!(sbi.handle_ecall(0x53525354, 0, [0; 6]), SbiRet::success(25));
     assert_eq!(sbi.handle_ecall(0x52464E43, 0, [0; 6]), SbiRet::success(26));
     assert_eq!(sbi.handle_ecall(0x52464E43, 1, [0; 6]), SbiRet::success(27));
@@ -310,6 +311,7 @@ impl rustsbi::Pmu for DummyPmu {
     fn counter_fw_read_hi(&self, _: usize) -> SbiRet {
         SbiRet::success(24)
     }
+    // TODO fn snapshot_set_shmem
 }
 
 struct DummyReset;