@@ -9,41 +9,36 @@ cargo qemu
9
9
When running ` cargo qemu ` , the test kernel will build and run. Expected output should be:
10
10
11
11
```
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
19
13
.______ __ __ _______.___________. _______..______ __
20
14
| _ \ | | | | / | | / || _ \ | |
21
15
| |_) | | | | | | (----`---| |----`| (----`| |_) || |
22
16
| / | | | | \ \ | | \ \ | _ < | |
23
17
| |\ \----.| `--' |.----) | | | .----) | | |_) || |
24
18
| _| `._____| \______/ |_______/ |__| |_______/ |______/ |__|
25
19
26
- [rustsbi] Implementation: RustSBI-QEMU Version 0.0.2
20
+ [rustsbi] Implementation: RustSBI-QEMU Version 0.1.0
27
21
[rustsbi-dtb] Hart count: cluster0 with 8 cores
28
22
[rustsbi] misa: RV64ACDFIMSU
29
23
[rustsbi] mideleg: ssoft, stimer, sext (0x222)
30
24
[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)
34
29
[rustsbi] enter supervisor 0x80200000
35
30
<< Test-kernel: Hart id = 0, DTB physical address = 0x87000000
36
31
>> Test-kernel: Testing base extension
37
32
<< Test-kernel: Base extension version: 1
38
- << Test-kernel: SBI specification version: 2
33
+ << Test-kernel: SBI specification version: 3
39
34
<< Test-kernel: SBI implementation Id: 4
40
35
<< Test-kernel: SBI implementation version: 200
41
36
<< Test-kernel: Device mvendorid: 0
42
37
<< Test-kernel: Device marchid: 0
43
38
<< Test-kernel: Device mimpid: 0
44
39
>> 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
47
42
>> Test-kernel: Trigger illegal exception
48
43
<< Test-kernel: Value of scause: Exception(IllegalInstruction)
49
44
<< Test-kernel: Illegal exception delegate success
@@ -67,7 +62,7 @@ xtask: mode: Debug
67
62
68
63
### Requirements
69
64
70
- ` cargo-binutils ` and ` llvm-tools-preview ` are needed
65
+ You should have ` cargo-binutils ` and ` llvm-tools-preview ` installed.
71
66
72
67
```
73
68
cargo install cargo-binutils
@@ -112,7 +107,7 @@ You should use these following line of parameters:
112
107
This project is licensed under Mulan PSL v2.
113
108
114
109
``` text
115
- Copyright (c) 2021 Wuxiang Zhi Feng Team
110
+ Copyright (c) 2021-2022 RustSBI Team
116
111
RustSBI-QEMU is licensed under Mulan PSL v2.
117
112
You can use this software according to the terms and conditions of the Mulan PSL v2.
118
113
You may obtain a copy of Mulan PSL v2 at:
0 commit comments