Skip to content

Commit

Permalink
rustsbi-qemu: update rustsbi dependency to 0.2.0
Browse files Browse the repository at this point in the history
fix documents

Signed-off-by: luojia65 <[email protected]>
  • Loading branch information
luojia65 committed Feb 13, 2022
1 parent 9dadb7a commit 7faa21b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 20 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 11 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,41 +9,36 @@ cargo qemu
When running `cargo qemu`, the test kernel will build and run. Expected output should be:

```
Finished dev [unoptimized + debuginfo] target(s) in 0.03s
Running `target\debug\xtask.exe qemu`
xtask: mode: Debug
Compiling rustsbi-qemu v0.0.2 (D:\RustSBI\rustsbi-qemu\rustsbi-qemu)
Finished dev [unoptimized + debuginfo] target(s) in 0.44s
Finished dev [unoptimized + debuginfo] target(s) in 0.04s
[rustsbi] RustSBI version 0.2.0-alpha.7
[rustsbi] RustSBI version 0.2.0, adapting to RISC-V SBI v0.3
.______ __ __ _______.___________. _______..______ __
| _ \ | | | | / | | / || _ \ | |
| |_) | | | | | | (----`---| |----`| (----`| |_) || |
| / | | | | \ \ | | \ \ | _ < | |
| |\ \----.| `--' |.----) | | | .----) | | |_) || |
| _| `._____| \______/ |_______/ |__| |_______/ |______/ |__|
[rustsbi] Implementation: RustSBI-QEMU Version 0.0.2
[rustsbi] Implementation: RustSBI-QEMU Version 0.1.0
[rustsbi-dtb] Hart count: cluster0 with 8 cores
[rustsbi] misa: RV64ACDFIMSU
[rustsbi] mideleg: ssoft, stimer, sext (0x222)
[rustsbi] medeleg: ima, ia, bkpt, la, sa, uecall, ipage, lpage, spage (0xb1ab)
[rustsbi] pmp0: 0x10000000 ..= 0x10001fff (rwx)
[rustsbi] pmp1: 0x80000000 ..= 0x8fffffff (rwx)
[rustsbi] pmp2: 0x0 ..= 0xffffffffffffff (---)
[rustsbi] pmp0: 0x10000000 ..= 0x10001fff (rw-)
[rustsbi] pmp1: 0x2000000 ..= 0x200ffff (rw-)
[rustsbi] pmp2: 0xc000000 ..= 0xc3fffff (rw-)
[rustsbi] pmp3: 0x80000000 ..= 0x8fffffff (rwx)
[rustsbi] enter supervisor 0x80200000
<< Test-kernel: Hart id = 0, DTB physical address = 0x87000000
>> Test-kernel: Testing base extension
<< Test-kernel: Base extension version: 1
<< Test-kernel: SBI specification version: 2
<< Test-kernel: SBI specification version: 3
<< Test-kernel: SBI implementation Id: 4
<< Test-kernel: SBI implementation version: 200
<< Test-kernel: Device mvendorid: 0
<< Test-kernel: Device marchid: 0
<< Test-kernel: Device mimpid: 0
>> Test-kernel: Testing SBI instruction emulation
<< Test-kernel: Current time: d1540
<< Test-kernel: Time after operation: d407b
<< Test-kernel: Current time: 17fc45
<< Test-kernel: Time after operation: 187678
>> Test-kernel: Trigger illegal exception
<< Test-kernel: Value of scause: Exception(IllegalInstruction)
<< Test-kernel: Illegal exception delegate success
Expand All @@ -67,7 +62,7 @@ xtask: mode: Debug

### Requirements

`cargo-binutils` and `llvm-tools-preview` are needed
You should have `cargo-binutils` and `llvm-tools-preview` installed.

```
cargo install cargo-binutils
Expand Down Expand Up @@ -112,7 +107,7 @@ You should use these following line of parameters:
This project is licensed under Mulan PSL v2.

```text
Copyright (c) 2021 Wuxiang Zhi Feng Team
Copyright (c) 2021-2022 RustSBI Team
RustSBI-QEMU is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
Expand Down
4 changes: 2 additions & 2 deletions rustsbi-qemu/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[package]
name = "rustsbi-qemu"
version = "0.0.2"
version = "0.1.0"
edition = "2018"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
rustsbi = { version = "0.2.0-alpha.10" }
rustsbi = "0.2.0"
buddy_system_allocator = "0.8"
lazy_static = { version = "1", features = ["spin_no_std"] }
spin = "0.9"
Expand Down

0 comments on commit 7faa21b

Please sign in to comment.