patch multiple UC_HOOK_MEM callbacks for unaligned access (#2063)

* patch multiple UC_HOOK_MEM callbacks for unaligned access

* update test_x86.c for #2063

* update test_x86.c for build on win

---------

Co-authored-by: yaojiale2024@iscas.ac.cn <yaojiale2024@iscas.ac.cn>
Co-authored-by: lazymio <mio@lazym.io>
This commit is contained in:
Michael-c0de
2024-12-29 23:24:32 +08:00
committed by GitHub
parent 9cfd5cfac3
commit 4f417c3f11
2 changed files with 46 additions and 1 deletions

View File

@@ -1593,7 +1593,8 @@ load_helper(CPUArchState *env, target_ulong addr, TCGMemOpIdx oi,
}
// now it is read on mapped memory
if (!code_read) {
// patch issue #1041 multiple UC_HOOK_MEM callbacks for unaligned access
if (!code_read && !uc->size_recur_mem) {
// this is date reading
HOOK_FOREACH(uc, hook, UC_HOOK_MEM_READ) {
if (hook->to_delete)