Skip to content

Commit 7faa21b

Browse files
committed
rustsbi-qemu: update rustsbi dependency to 0.2.0
fix documents Signed-off-by: luojia65 <me@luojia.cc>
1 parent 9dadb7a commit 7faa21b

File tree

3 files changed

+15
-20
lines changed

3 files changed

+15
-20
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,41 +9,36 @@ cargo qemu
99
When running `cargo qemu`, the test kernel will build and run. Expected output should be:
1010

1111
```
12-
Finished dev [unoptimized + debuginfo] target(s) in 0.03s
13-
Running `target\debug\xtask.exe qemu`
14-
xtask: mode: Debug
15-
Compiling rustsbi-qemu v0.0.2 (D:\RustSBI\rustsbi-qemu\rustsbi-qemu)
16-
Finished dev [unoptimized + debuginfo] target(s) in 0.44s
17-
Finished dev [unoptimized + debuginfo] target(s) in 0.04s
18-
[rustsbi] RustSBI version 0.2.0-alpha.7
12+
[rustsbi] RustSBI version 0.2.0, adapting to RISC-V SBI v0.3
1913
.______ __ __ _______.___________. _______..______ __
2014
| _ \ | | | | / | | / || _ \ | |
2115
| |_) | | | | | | (----`---| |----`| (----`| |_) || |
2216
| / | | | | \ \ | | \ \ | _ < | |
2317
| |\ \----.| `--' |.----) | | | .----) | | |_) || |
2418
| _| `._____| \______/ |_______/ |__| |_______/ |______/ |__|
2519
26-
[rustsbi] Implementation: RustSBI-QEMU Version 0.0.2
20+
[rustsbi] Implementation: RustSBI-QEMU Version 0.1.0
2721
[rustsbi-dtb] Hart count: cluster0 with 8 cores
2822
[rustsbi] misa: RV64ACDFIMSU
2923
[rustsbi] mideleg: ssoft, stimer, sext (0x222)
3024
[rustsbi] medeleg: ima, ia, bkpt, la, sa, uecall, ipage, lpage, spage (0xb1ab)
31-
[rustsbi] pmp0: 0x10000000 ..= 0x10001fff (rwx)
32-
[rustsbi] pmp1: 0x80000000 ..= 0x8fffffff (rwx)
33-
[rustsbi] pmp2: 0x0 ..= 0xffffffffffffff (---)
25+
[rustsbi] pmp0: 0x10000000 ..= 0x10001fff (rw-)
26+
[rustsbi] pmp1: 0x2000000 ..= 0x200ffff (rw-)
27+
[rustsbi] pmp2: 0xc000000 ..= 0xc3fffff (rw-)
28+
[rustsbi] pmp3: 0x80000000 ..= 0x8fffffff (rwx)
3429
[rustsbi] enter supervisor 0x80200000
3530
<< Test-kernel: Hart id = 0, DTB physical address = 0x87000000
3631
>> Test-kernel: Testing base extension
3732
<< Test-kernel: Base extension version: 1
38-
<< Test-kernel: SBI specification version: 2
33+
<< Test-kernel: SBI specification version: 3
3934
<< Test-kernel: SBI implementation Id: 4
4035
<< Test-kernel: SBI implementation version: 200
4136
<< Test-kernel: Device mvendorid: 0
4237
<< Test-kernel: Device marchid: 0
4338
<< Test-kernel: Device mimpid: 0
4439
>> Test-kernel: Testing SBI instruction emulation
45-
<< Test-kernel: Current time: d1540
46-
<< Test-kernel: Time after operation: d407b
40+
<< Test-kernel: Current time: 17fc45
41+
<< Test-kernel: Time after operation: 187678
4742
>> Test-kernel: Trigger illegal exception
4843
<< Test-kernel: Value of scause: Exception(IllegalInstruction)
4944
<< Test-kernel: Illegal exception delegate success
@@ -67,7 +62,7 @@ xtask: mode: Debug
6762

6863
### Requirements
6964

70-
`cargo-binutils` and `llvm-tools-preview` are needed
65+
You should have `cargo-binutils` and `llvm-tools-preview` installed.
7166

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

114109
```text
115-
Copyright (c) 2021 Wuxiang Zhi Feng Team
110+
Copyright (c) 2021-2022 RustSBI Team
116111
RustSBI-QEMU is licensed under Mulan PSL v2.
117112
You can use this software according to the terms and conditions of the Mulan PSL v2.
118113
You may obtain a copy of Mulan PSL v2 at:

rustsbi-qemu/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
[package]
22
name = "rustsbi-qemu"
3-
version = "0.0.2"
3+
version = "0.1.0"
44
edition = "2018"
55

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

88
[dependencies]
9-
rustsbi = { version = "0.2.0-alpha.10" }
9+
rustsbi = "0.2.0"
1010
buddy_system_allocator = "0.8"
1111
lazy_static = { version = "1", features = ["spin_no_std"] }
1212
spin = "0.9"

0 commit comments

Comments
 (0)