Add mips support for QemuTracerHelper (#941)

* Add mips support for QemuTracerHelper

* Formatting

Ran cargo +nightly fmt

* Removed unnecessary `any`

* Removed cfg guarding calls module

Co-authored-by: Andrea Fioraldi <andreafioraldi@gmail.com>
This commit is contained in:
Sparrrgh 2022-12-14 17:45:54 +01:00 committed by GitHub
parent 664e87809e
commit d04346c870
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -99,6 +99,13 @@ where
ret_addr
};
#[cfg(cpu_target = "mips")]
let ret_addr = {
let emu = hooks.emulator();
let ret_addr: GuestAddr = emu.read_reg(Regs::Ra).unwrap();
ret_addr
};
// eprintln!("RET @ 0x{:#x}", ret_addr);
if let Some(h) = hooks

View File

@ -76,7 +76,6 @@ pub use asan::{init_with_asan, QemuAsanHelper};
pub mod blocks;
#[cfg(not(cpu_target = "mips"))]
pub mod calls;
pub mod drcov;