RISC-V ISA library
Rust crate for working with the RISC-V instruction set architecture.
This library currently supports decoding RISC-V instructions, finding CSRs, and has partial support for producing disassembly.
Instructions from the following specs and extensions are supported:
RV32andRV64I,M,A,F,D,Q,C,BZicsr,ZifenceiZawrsZfhZba,Zbb,Zbs,Zbc,Zbkb
Usage
Decoding instructions:
use FromStr;
use ;
let target = from_str.unwrap;
let instructions = ;
let mut decoder = from_le_bytes;
assert_eq!;
assert_eq!;
assert_eq!;
License
This work is distributed under the terms of both the MIT license and the Apache-2.0 license. See LICENSE-APACHE and LICENSE-MIT for details.