This commit is contained in:
Andrea Fioraldi 2020-03-18 21:18:55 +01:00
parent cd7e234445
commit 2e4fda6d4c

View File

@ -199,7 +199,12 @@ void HELPER(afl_cmplog_rtn)(CPUArchState *env) {
if (!area_is_mapped(ptr1, 32) || !area_is_mapped(ptr2, 32)) return;
#if defined(TARGET_X86_64) || defined(TARGET_I386)
uintptr_t k = (uintptr_t)env->eip;
#else
uintptr_t k = 0;
#endif
k = (k >> 4) ^ (k << 8);
k &= CMP_MAP_W - 1;