From 9afe1037a725dbf1c1bbdc5cd412b1b2ecc1c8ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Strohh=C3=A4cker?= Date: Sat, 14 Apr 2007 13:11:48 +0000 Subject: [PATCH] correct range invalidation start index (dynamic core, fixes Archimedean Dynasty) Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2835 --- src/cpu/core_dyn_x86/cache.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);