Crate rrs_lib

Source
Expand description

RISC-V instruction set simulator library

Containts the building blocks for a RISC-V ISS. The seperate rrs-cli uses rrs-lib to implement a CLI driven ISS.

Re-exports§

pub use process_instruction::process_instruction;

Modules§

instruction_executor
An InstructionProcessor that executes instructions.
instruction_formats
Structures and constants for instruction decoding
instruction_string_outputter
An InstructionProcessor that outputs a string of the instruction disassembly
memories
Various Memory implementations useful for an ISS and utility functions
process_instruction

Structs§

HartState
State of a single RISC-V hart (hardware thread)

Enums§

MemAccessSize
The different sizes used for memory accesses

Traits§

InstructionProcessor
A trait for objects which do something with RISC-V instructions (e.g. execute them or print a disassembly string).
Memory
A trait for objects which implement memory operations