Skip to content

Commit

Permalink
Remove unnecessary files and add goblin dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Clo91eaf committed Mar 18, 2024
1 parent 939846a commit b3d6d76
Show file tree
Hide file tree
Showing 444 changed files with 55 additions and 142,971 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/target
/.vscode
/logs
/dependencies/elf
44 changes: 44 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ edition = "2021"
[dependencies]
clap = { version = "4.3.11", features = ["derive"] }
anyhow = "1.0.80"
goblin = "0.8.0"
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use std::fs::File;
use std::io::prelude::*;
use std::io::Read;
use std::path::PathBuf;

use hemu::bus::DRAM_BASE;
Expand Down
6 changes: 3 additions & 3 deletions tests/am-tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ macro_rules! add_test {
#[test]
fn $name() -> anyhow::Result<()> {
let mut root = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
root.push("tests/resources/am-tests");
root.push(stringify!($name).to_owned().replace("_", "-") + "-riscv64-nemu.bin");
root.push("dependencies/tests/am-tests");
root.push(stringify!($name).to_owned().replace("_", "-"));

let mut file = File::open(root.as_path())?;
let mut file = File::open("/tmp/bin")?;
let mut data = Vec::new();
file.read_to_end(&mut data)?;

Expand Down
Binary file removed tests/resources/am-tests/add-longlong-riscv64-nemu.bin
Binary file not shown.
803 changes: 0 additions & 803 deletions tests/resources/am-tests/add-longlong-riscv64-nemu.diff

This file was deleted.

Binary file not shown.
85 changes: 0 additions & 85 deletions tests/resources/am-tests/add-longlong-riscv64-nemu.txt

This file was deleted.

Binary file removed tests/resources/am-tests/add-riscv64-nemu.bin
Binary file not shown.
Loading

0 comments on commit b3d6d76

Please sign in to comment.