Open glennsec opened 1 month ago
Hi, code updated to cover ppc64 as well.
I think you missed at least UC_HOOK_MEM_READ_AFTER
.
Also it would be nice to use HOOK_EXISTS_BOUNDED. This way the fast way is taken when no hook exists at the used address. But I don't know if this is possible at this place (you need the emulated physical address).
I think you missed at least
UC_HOOK_MEM_READ_AFTER
.Also it would be nice to use HOOK_EXISTS_BOUNDED. This way the fast way is taken when no hook exists at the used address. But I don't know if this is possible at this place (you need the emulated physical address).
Added check for UC_HOOK_MEM_READ_AFTER
, including for i386. Factored out the code along the way. I am not sure either I can use HOOK_EXISTS_BOUNDED()
as TCGContext.pc_start is set to the end of the BB at the point we call it for codegen.
Directly jump into the slow path when there is any hookmem enabled. This fixes #1908.