Browse Source

sbi-testing: rename `MArchId` and `MVendorId` into `MarchId` and `MvendorId` in `BaseCase`

Aligns with `MimpId`, the naming convention is now the same as the `riscv` crate.

Signed-off-by: Zhouqi Jiang <[email protected]>
Zhouqi Jiang 1 year ago
parent
commit
832f50e71f
2 changed files with 5 additions and 4 deletions
  1. 1 0
      sbi-testing/CHANGELOG.md
  2. 4 4
      sbi-testing/src/base.rs

+ 1 - 0
sbi-testing/CHANGELOG.md

@@ -15,6 +15,7 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
 
 - Update sbi-spec to version 0.0.6
 - Update sbi-rt to version 0.0.3
+- Rename `MArchId` and `MVendorId` into `MarchId` and `MvendorId` in `BaseCase`
 
 ### Fixed
 

+ 4 - 4
sbi-testing/src/base.rs

@@ -19,9 +19,9 @@ pub enum Case {
     /// Test process for probe standard SBI extensions.
     ProbeExtensions(Extensions),
     /// Test process for getting vendor ID from RISC-V environment.
-    GetMVendorId(usize),
+    GetMvendorId(usize),
     /// Test process for getting architecture ID from RISC-V environment.
-    GetMArchId(usize),
+    GetMarchId(usize),
     /// Test process for getting implementation ID from RISC-V environment.
     GetMimpId(usize),
     /// All test cases on base module finished.
@@ -99,8 +99,8 @@ pub fn test(mut f: impl FnMut(Case)) {
         srst: sbi::probe_extension(sbi::Reset),
         pmu: sbi::probe_extension(sbi::Pmu),
     }));
-    f(Case::GetMVendorId(sbi::get_mvendorid()));
-    f(Case::GetMArchId(sbi::get_marchid()));
+    f(Case::GetMvendorId(sbi::get_mvendorid()));
+    f(Case::GetMarchId(sbi::get_marchid()));
     f(Case::GetMimpId(sbi::get_mimpid()));
     f(Case::Pass);
 }