From 8d0b8bbf4c38d524c098706ece7c3b94ba0a4435 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Sun, 5 Jan 2020 18:13:35 +0200 Subject: [PATCH] Another 68030 MMU regression fix. --- cpummu30.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/cpummu30.cpp b/cpummu30.cpp index 21825925..6616a16f 100644 --- a/cpummu30.cpp +++ b/cpummu30.cpp @@ -3025,7 +3025,7 @@ uae_u32 REGPARAM2 get_disp_ea_020_mmu030 (uae_u32 base, int idx) uae_u16 dp; int reg; uae_u32 v; - int oldidx, oldidx2; + int oldidx; int pcadd = 0; // we need to do this hack here because in worst case we don't have enough @@ -3038,7 +3038,6 @@ uae_u32 REGPARAM2 get_disp_ea_020_mmu030 (uae_u32 base, int idx) } oldidx = mmu030_idx; - oldidx2 = mmu030_idx_done; dp = next_iword_mmu030_state (); pcadd += 1; @@ -3090,7 +3089,7 @@ uae_u32 REGPARAM2 get_disp_ea_020_mmu030 (uae_u32 base, int idx) mmu030_state[2] |= pcadd << (idx * 4); mmu030_disp_store[idx] = v; mmu030_idx = oldidx; - mmu030_idx_done = oldidx2; + mmu030_idx_done = oldidx; return v; } @@ -3116,7 +3115,7 @@ uae_u32 REGPARAM2 get_disp_ea_020_mmu030c (uae_u32 base, int idx) uae_u16 dp; int reg; uae_u32 v; - int oldidx, oldidx2; + int oldidx; int pcadd = 0; // we need to do this hack here because in worst case we don't have enough @@ -3129,7 +3128,6 @@ uae_u32 REGPARAM2 get_disp_ea_020_mmu030c (uae_u32 base, int idx) } oldidx = mmu030_idx; - oldidx2 = mmu030_idx_done; dp = next_iword_mmu030c_state (); pcadd += 1; @@ -3181,7 +3179,7 @@ uae_u32 REGPARAM2 get_disp_ea_020_mmu030c (uae_u32 base, int idx) mmu030_state[2] |= pcadd << (idx * 4); mmu030_disp_store[idx] = v; mmu030_idx = oldidx; - mmu030_idx_done = oldidx2; + mmu030_idx_done = oldidx; return v; } -- 2.47.3