]> git.sesse.net Git - pistorm/commitdiff
Fix Musashi compilation with prefetch emulation disabled
authorbeeanyew <beeanyew@gmail.com>
Thu, 17 Jun 2021 17:10:02 +0000 (19:10 +0200)
committerbeeanyew <beeanyew@gmail.com>
Thu, 17 Jun 2021 17:10:02 +0000 (19:10 +0200)
m68kcpu.c

index 33bf016d8947372d2d8d81a9eef3db0792f3eb25..da84aed0067dc887330ceae83e1185e279f45a0d 100644 (file)
--- a/m68kcpu.c
+++ b/m68kcpu.c
@@ -1297,16 +1297,8 @@ uint m68ki_read_imm6_addr_slowpath(uint32_t pc, address_translation_cache *cache
        return result;
 }
 #else
-
-       uint32_t address = ADDRESS_68K(REG_PC);
        REG_PC += 2;
 
-       for (int i = 0; i < read_ranges; i++) {
-               if(address >= read_addr[i] && address < read_upper[i]) {
-                       return be16toh(((unsigned short *)(read_data[i] + (address - read_addr[i])))[0]);
-               }
-       }
-
        return m68k_read_immediate_16(address);
 #endif /* M68K_EMULATE_PREFETCH */
 }