@@ -9,28 +9,31 @@ 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`
12
14
xtask: mode: Debug
13
- Compiling rustsbi-qemu v0.1.0 (D:\RustProjects \rustsbi-qemu\rustsbi-qemu)
14
- Finished dev [unoptimized + debuginfo] target(s) in 1.09s
15
- Finished dev [unoptimized + debuginfo] target(s) in 0.23s
16
- [rustsbi] RustSBI version 0.2.0-alpha.3
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
17
19
.______ __ __ _______.___________. _______..______ __
18
20
| _ \ | | | | / | | / || _ \ | |
19
21
| |_) | | | | | | (----`---| |----`| (----`| |_) || |
20
22
| / | | | | \ \ | | \ \ | _ < | |
21
23
| |\ \----.| `--' |.----) | | | .----) | | |_) || |
22
24
| _| `._____| \______/ |_______/ |__| |_______/ |______/ |__|
23
25
24
- [rustsbi] Implementation: RustSBI-QEMU Version 0.0.1
25
- [rustsbi-dtb] Hart count: cluster0 with 1 cores
26
+ [rustsbi] Implementation: RustSBI-QEMU Version 0.0.2
27
+ [rustsbi-dtb] Hart count: cluster0 with 8 cores
26
28
[rustsbi] misa: RV64ACDFIMSU
27
29
[rustsbi] mideleg: ssoft, stimer, sext (0x222)
28
30
[rustsbi] medeleg: ima, ia, bkpt, la, sa, uecall, ipage, lpage, spage (0xb1ab)
29
- [rustsbi] pmp0: 0x80000000 ..= 0x800fffff (rwx)
30
- [rustsbi] pmp1: 0x80200000 ..= 0x802fffff (rwx)
31
- [rustsbi] pmp2: 0x0 ..= 0xfffffffffffffffc (---)
31
+ [rustsbi] pmp0: 0x10000000 ..= 0x10001fff (rwx)
32
+ [rustsbi] pmp1: 0x80000000 ..= 0x8fffffff (rwx)
33
+ [rustsbi] pmp2: 0x0 ..= 0xffffffffffffff (---)
34
+ D:\Applications\Scoop\apps\qemu\current\qemu-system-riscv64.exe: clint: invalid write: 00000020
32
35
[rustsbi] enter supervisor 0x80200000
33
- << Test-kernel: Hart id = 0, DTB physical address = 0x87e00000
36
+ << Test-kernel: Hart id = 0, DTB physical address = 0x87000000
34
37
>> Test-kernel: Testing base extension
35
38
<< Test-kernel: Base extension version: 1
36
39
<< Test-kernel: SBI specification version: 2
@@ -40,11 +43,25 @@ xtask: mode: Debug
40
43
<< Test-kernel: Device marchid: 0
41
44
<< Test-kernel: Device mimpid: 0
42
45
>> Test-kernel: Testing SBI instruction emulation
43
- << Test-kernel: Current time: 31918a
46
+ << Test-kernel: Current time: d1540
47
+ << Test-kernel: Time after operation: d407b
44
48
>> Test-kernel: Trigger illegal exception
45
49
<< Test-kernel: Value of scause: Exception(IllegalInstruction)
46
50
<< Test-kernel: Illegal exception delegate success
47
- << Test-kernel: SBI test SUCCESS, shutdown
51
+ >> Stop hart 3, return value 0
52
+ >> Hart 0 state return value: 0
53
+ >> Hart 1 state return value: 4
54
+ >> Hart 2 state return value: 4
55
+ >> Hart 3 state return value: 1
56
+ << Test-kernel: test for hart 0 success, wake another hart
57
+ >> Wake hart 1, sbi return value 0
58
+ >> Start test for hart 1, retentive suspend return value 0
59
+ >> Wake hart 2, sbi return value 0
60
+ << The parameter passed to hart 2 resume is: 0x4567890a
61
+ >> Start hart 3 with parameter 0x12345678
62
+ >> SBI return value: 0
63
+ << The parameter passed to hart 3 start is: 0x12345678
64
+ << Test-kernel: All hart SBI test SUCCESS, shutdown
48
65
```
49
66
50
67
## Run test kernel
0 commit comments