From: Dimitris Panokostas Date: Thu, 2 Nov 2023 15:13:43 +0000 (+0100) Subject: Minor fixes X-Git-Tag: 5.1.0~67^2 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=b375799dd474a33ed9d79febe042401e3ddbd839;p=francis%2Fwinuae.git Minor fixes - Fix missing #ifdef DEBUGGER in a few places - Fixed decide_hdiw2 parameters when DEBUGGER is not available - Removed redundant extra break statement in intputdevice.cpp --- diff --git a/custom.cpp b/custom.cpp index 51ca5cd9..dcc45bd3 100644 --- a/custom.cpp +++ b/custom.cpp @@ -1684,7 +1684,7 @@ static void decide_hdiw(int hpos, bool halfcycle = false) } } #else - decide_hdiw2(hpos); + decide_hdiw2(hpos, halfcycle); #endif } @@ -8063,7 +8063,9 @@ static void VHPOSW_delayed(uae_u32 v) #endif } vpos = newvpos; +#ifdef DEBUGGER record_dma_denise(hnew, hdiw_denisecounter >> 2); +#endif vb_check(); decide_vline(hnew); vhposw_modified = true; diff --git a/gencpu.cpp b/gencpu.cpp index 06d66282..1c2bb89c 100644 --- a/gencpu.cpp +++ b/gencpu.cpp @@ -7040,7 +7040,9 @@ static void gen_opcode (unsigned int opcode) out("opcode |= 0x20000;\n"); } if (using_debugmem) { + out("#ifdef DEBUGGER\n"); out("branch_stack_pop_rte(oldpc);\n"); + out("#endif\n"); } } else if (cpu_level == 1 && using_prefetch) { // 68010 @@ -7088,7 +7090,9 @@ static void gen_opcode (unsigned int opcode) out("newsr = sr; newpc = pc;\n"); setpc ("newpc"); if (using_debugmem) { + out("#ifdef DEBUGGER\n"); out("branch_stack_pop_rte(oldpc);\n"); + out("#endif\n"); } } else { out("uaecptr oldpc = %s;\n", getpc); @@ -7202,7 +7206,9 @@ static void gen_opcode (unsigned int opcode) out("}\n"); setpc ("newpc"); if (using_debugmem) { + out("#ifdef DEBUGGER\n"); out("branch_stack_pop_rte(oldpc);\n"); + out("#endif\n"); } } /* PC is set and prefetch filled. */ @@ -7358,9 +7364,11 @@ static void gen_opcode (unsigned int opcode) count_readl++; } if (using_debugmem) { + out("#ifdef DEBUGGER\n"); out("if (debugmem_trace) {\n"); out("branch_stack_pop_rts(oldpc);\n"); out("}\n"); + out("#endif\n"); } out("if (%s & 1) {\n", getpc); out("uaecptr faultpc = %s;\n", getpc); @@ -7595,9 +7603,11 @@ static void gen_opcode (unsigned int opcode) if (cpu_level >= 4) out("m68k_areg(regs, 7) -= 4;\n"); if (using_debugmem) { + out("#ifdef DEBUGGER\n"); out("if (debugmem_trace) {\n"); out("branch_stack_push(oldpc, nextpc);\n"); out("}\n"); + out("#endif\n"); } } fill_prefetch_full_020(); @@ -7752,9 +7762,11 @@ static void gen_opcode (unsigned int opcode) out("}\n"); } if (using_debugmem) { + out("#ifdef DEBUGGER\n"); out("if (debugmem_trace) {\n"); out("branch_stack_push(oldpc, nextpc);\n"); out("}\n"); + out("#endif\n"); } clear_m68k_offset(); if (using_prefetch || using_ce) { diff --git a/inputdevice.cpp b/inputdevice.cpp index 7ef17809..8447f09c 100644 --- a/inputdevice.cpp +++ b/inputdevice.cpp @@ -5073,8 +5073,6 @@ static bool inputdevice_handle_inputcode2(int monid, int code, int state, const _tcscpy (changed_prefs.floppyslots[code - AKS_DISKSWAPPER_INSERT0].df, currprefs.dfxlist[swapperslot]); set_config_changed (); break; - - break; case AKS_INPUT_CONFIG_1: case AKS_INPUT_CONFIG_2: case AKS_INPUT_CONFIG_3: