4
0
Эх сурвалжийг харах

Support for SBI Specification v1.0.0 Ratified

Ref: https://github.com/riscv-non-isa/riscv-sbi-doc/commit/659950dc57f9840cf8242c1cff138c2ee67634bb
luojia65 3 жил өмнө
parent
commit
b385729cae
3 өөрчлөгдсөн 10 нэмэгдсэн , 3 устгасан
  1. 2 0
      CHANGELOG.md
  2. 5 0
      src/guest.rs
  3. 3 3
      src/lib.rs

+ 2 - 0
CHANGELOG.md

@@ -8,6 +8,8 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
 ## Unreleased
 
 ### Added
+- Support for RISC-V SBI v1.0.0 Ratified Specification
+- Internal guest and instance module
 
 ### Modified
 

+ 5 - 0
src/guest.rs

@@ -0,0 +1,5 @@
+//! Guest pointer width which differs from host pointer width
+//! 
+//! Useful for developing hypervisors.
+
+// TODO: design this module

+ 3 - 3
src/lib.rs

@@ -182,10 +182,10 @@ mod util;
 #[cfg(feature = "guest")]
 mod guest;
 
-pub mod instance;
+// pub mod instance; // TODO: SBI instances, useful for developing hypervisors
 
-const SBI_SPEC_MAJOR: usize = 0;
-const SBI_SPEC_MINOR: usize = 3;
+const SBI_SPEC_MAJOR: usize = 1;
+const SBI_SPEC_MINOR: usize = 0;
 
 // RustSBI implementation ID: 4
 // Ref: https://github.com/riscv-non-isa/riscv-sbi-doc/pull/61