diff --git a/src/cpu/core_dyn_x86/cache.h b/src/cpu/core_dyn_x86/cache.h index 7fe2965e..a5f10b7b 100644 --- a/src/cpu/core_dyn_x86/cache.h +++ b/src/cpu/core_dyn_x86/cache.h @@ -66,7 +66,7 @@ public: } } bool InvalidateRange(Bitu start,Bitu end) { - Bits index=1+(start>>DYN_HASH_SHIFT); + Bits index=1+(end>>DYN_HASH_SHIFT); bool is_current_block=false; Bit32u ip_point=SegPhys(cs)+reg_eip; ip_point=((paging.tlb.phys_page[ip_point>>12]-phys_page)<<12)+(ip_point&0xfff);