From 5010d4dce4383a93120a550663f00391bf2f54a6 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Sat, 4 Jan 2020 16:13:58 +0200 Subject: [PATCH] Fix tester compilation. --- cputest.cpp | 4 ++-- cputest_support.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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; -- 2.47.3