fix GEN_BLOCK_HOOK_PTR
This commit is contained in:
parent
bec4743978
commit
819f759be9
@ -68,7 +68,7 @@ where
|
||||
let helpers = (QEMU_HELPERS_PTR as *mut QT).as_mut().unwrap();
|
||||
let state = inprocess_get_state::<S>().unwrap();
|
||||
let emulator = Emulator::new_empty();
|
||||
let func: fn(&Emulator, &mut QT, &mut S, u64) -> Option<u64> = transmute(GEN_EDGE_HOOK_PTR);
|
||||
let func: fn(&Emulator, &mut QT, &mut S, u64) -> Option<u64> = transmute(GEN_BLOCK_HOOK_PTR);
|
||||
(func)(&emulator, helpers, state, pc).map_or(SKIP_EXEC_HOOK, |id| id)
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user