@@ -9,28 +9,31 @@ cargo qemu
99When 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`
1214xtask: 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
1719.______ __ __ _______.___________. _______..______ __
1820| _ \ | | | | / | | / || _ \ | |
1921| |_) | | | | | | (----`---| |----`| (----`| |_) || |
2022| / | | | | \ \ | | \ \ | _ < | |
2123| |\ \----.| `--' |.----) | | | .----) | | |_) || |
2224| _| `._____| \______/ |_______/ |__| |_______/ |______/ |__|
2325
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
2628[rustsbi] misa: RV64ACDFIMSU
2729[rustsbi] mideleg: ssoft, stimer, sext (0x222)
2830[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
3235[rustsbi] enter supervisor 0x80200000
33- << Test-kernel: Hart id = 0, DTB physical address = 0x87e00000
36+ << Test-kernel: Hart id = 0, DTB physical address = 0x87000000
3437>> Test-kernel: Testing base extension
3538<< Test-kernel: Base extension version: 1
3639<< Test-kernel: SBI specification version: 2
@@ -40,11 +43,25 @@ xtask: mode: Debug
4043<< Test-kernel: Device marchid: 0
4144<< Test-kernel: Device mimpid: 0
4245>> 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
4448>> Test-kernel: Trigger illegal exception
4549<< Test-kernel: Value of scause: Exception(IllegalInstruction)
4650<< 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
4865```
4966
5067## Run test kernel
0 commit comments