luojia65 7eec516d16 Dump all trap frame registers when exception happened in reference implementations 3 years ago
..
.cargo 6c3c207d43 Fix: platform impl does not require floating point 4 years ago
src 7eec516d16 Dump all trap frame registers when exception happened in reference implementations 3 years ago
Cargo.toml 487bbc8c51 Bug fix for interrupt bit in `scause::set` (#10) 4 years ago
README.md 24bf4e39ec Small fix for illegal instruction testcase 4 years ago
build.rs c62c38b4f5 K210 support 4 years ago
justfile 3bf8eb53e5 Use latest `riscv` crate as dependency for QEMU platform 4 years ago
link-qemu.ld c62c38b4f5 K210 support 4 years ago

README.md

QEMU example support using RustSBI

Compile and run with:

just run

When running just run, the test kernel will build and run. Expected output should be:

   Compiling rustsbi-qemu v0.1.0 (.../rustsbi/platform/qemu)
    Finished dev [unoptimized + debuginfo] target(s) in 1.62s
[rustsbi] RustSBI version 0.1.1
.______       __    __      _______.___________.  _______..______   __
|   _  \     |  |  |  |    /       |           | /       ||   _  \ |  |
|  |_)  |    |  |  |  |   |   (----`---|  |----`|   (----`|  |_)  ||  |
|      /     |  |  |  |    \   \       |  |      \   \    |   _  < |  |
|  |\  \----.|  `--'  |.----)   |      |  |  .----)   |   |  |_)  ||  |
| _| `._____| \______/ |_______/       |__|  |_______/    |______/ |__|

[rustsbi] Platform: QEMU (Version 0.1.0)
[rustsbi] misa: RV64ACDFIMSU
[rustsbi] mideleg: 0x222
[rustsbi] medeleg: 0xb1ab
[rustsbi-dtb] Hart count: cluster0 with 2 cores
[rustsbi] Kernel entry: 0x80200000
<< Test-kernel: Hart id = 0, DTB physical address = 0x1020
>> Test-kernel: Trigger illegal exception
<< Test-kernel: Illegal exception delegate success
<< Test-kernel: SBI test SUCCESS, shutdown