aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
blob: 8e26888ce5e40e65cfd26c4ecc43e5d985df8742 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#![feature(as_slice)]
mod isa;
mod binary;
mod memory;
mod cache;
mod simulator;

#[test]
fn it_works() {
    use std::path::Path;
    println!("Test");
    match binary::Binary::new_from_hex_file(Path::new("../riscv/kernel.hex")) {
        Ok(_) => println!("Ok"),
        Err(err) => println!("Error: {:?}", err),
    }
}