]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Another 68030 MMU regression fix.
authorToni Wilen <twilen@winuae.net>
Sun, 5 Jan 2020 16:13:35 +0000 (18:13 +0200)
committerToni Wilen <twilen@winuae.net>
Sun, 5 Jan 2020 16:13:35 +0000 (18:13 +0200)
cpummu30.cpp

index 21825925f501524ade6cd2e71778152ce8f0e68d..6616a16fc219d7e2dbc929291e84b1027bea92d1 100644 (file)
@@ -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;
 }