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:
parent
664e87809e
commit
d04346c870
@ -99,6 +99,13 @@ where
|
|||||||
ret_addr
|
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);
|
// eprintln!("RET @ 0x{:#x}", ret_addr);
|
||||||
|
|
||||||
if let Some(h) = hooks
|
if let Some(h) = hooks
|
||||||
|
@ -76,7 +76,6 @@ pub use asan::{init_with_asan, QemuAsanHelper};
|
|||||||
|
|
||||||
pub mod blocks;
|
pub mod blocks;
|
||||||
|
|
||||||
#[cfg(not(cpu_target = "mips"))]
|
|
||||||
pub mod calls;
|
pub mod calls;
|
||||||
pub mod drcov;
|
pub mod drcov;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user