From: Toni Wilen Date: Sat, 4 Jan 2020 14:13:58 +0000 (+0200) Subject: Fix tester compilation. X-Git-Tag: 4400~196 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=5010d4dce4383a93120a550663f00391bf2f54a6;p=francis%2Fwinuae.git Fix tester compilation. --- diff --git a/cputest.cpp b/cputest.cpp index f7641e94..0027b522 100644 --- a/cputest.cpp +++ b/cputest.cpp @@ -919,11 +919,11 @@ uae_u32 REGPARAM2 op_illg(uae_u32 opcode) return op_illg_1(opcode); } -void exception2_fetch(uae_u32 opcode, uaecptr addr) +void exception2_fetch(uae_u32 opcode, int offset) { test_exception = 2; test_exception_3_w = 0; - test_exception_addr = addr; + test_exception_addr = m68k_getpci() + offset; test_exception_opcode = opcode; test_exception_3_fc = 2; test_exception_3_size = 1; diff --git a/cputest_support.cpp b/cputest_support.cpp index bce2b91d..50ebdbe5 100644 --- a/cputest_support.cpp +++ b/cputest_support.cpp @@ -113,7 +113,7 @@ void mmu_op(uae_u32 opcode, uae_u32 extra) uae_u16 mmu030_state[3]; int mmu030_opcode; -int mmu030_idx; +int mmu030_idx, mmu030_idx_done; uae_u32 mmu030_disp_store[2]; uae_u32 mmu030_fmovem_store[2]; uae_u32 mm030_stageb_address;