mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-26 07:35:41 +00:00
CPU: Update debug dispatcher flag on init
This commit is contained in:
parent
0fbc1a3a8a
commit
35f0d7f623
|
@ -170,6 +170,7 @@ void CPU::Initialize()
|
||||||
s_break_after_instruction = false;
|
s_break_after_instruction = false;
|
||||||
|
|
||||||
UpdateMemoryPointers();
|
UpdateMemoryPointers();
|
||||||
|
UpdateDebugDispatcherFlag();
|
||||||
|
|
||||||
GTE::Initialize();
|
GTE::Initialize();
|
||||||
}
|
}
|
||||||
|
@ -1972,7 +1973,6 @@ bool CPU::UpdateDebugDispatcherFlag()
|
||||||
{
|
{
|
||||||
const bool has_any_breakpoints = HasAnyBreakpoints() || s_single_step;
|
const bool has_any_breakpoints = HasAnyBreakpoints() || s_single_step;
|
||||||
|
|
||||||
// TODO: cop0 breakpoints
|
|
||||||
const auto& dcic = g_state.cop0_regs.dcic;
|
const auto& dcic = g_state.cop0_regs.dcic;
|
||||||
const bool has_cop0_breakpoints = dcic.super_master_enable_1 && dcic.super_master_enable_2 &&
|
const bool has_cop0_breakpoints = dcic.super_master_enable_1 && dcic.super_master_enable_2 &&
|
||||||
dcic.execution_breakpoint_enable && IsCop0ExecutionBreakpointUnmasked();
|
dcic.execution_breakpoint_enable && IsCop0ExecutionBreakpointUnmasked();
|
||||||
|
|
|
@ -125,6 +125,7 @@ void Shutdown();
|
||||||
void Reset();
|
void Reset();
|
||||||
bool DoState(StateWrapper& sw);
|
bool DoState(StateWrapper& sw);
|
||||||
void ClearICache();
|
void ClearICache();
|
||||||
|
bool UpdateDebugDispatcherFlag();
|
||||||
void UpdateMemoryPointers();
|
void UpdateMemoryPointers();
|
||||||
void ExecutionModeChanged();
|
void ExecutionModeChanged();
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,6 @@ ALWAYS_INLINE static void CheckForPendingInterrupt()
|
||||||
}
|
}
|
||||||
|
|
||||||
void DispatchInterrupt();
|
void DispatchInterrupt();
|
||||||
bool UpdateDebugDispatcherFlag();
|
|
||||||
|
|
||||||
// icache stuff
|
// icache stuff
|
||||||
ALWAYS_INLINE static bool IsCachedAddress(VirtualMemoryAddress address)
|
ALWAYS_INLINE static bool IsCachedAddress(VirtualMemoryAddress address)
|
||||||
|
|
|
@ -3763,6 +3763,11 @@ void System::CheckForSettingsChanges(const Settings& old_settings)
|
||||||
if (g_settings.cpu_recompiler_icache != old_settings.cpu_recompiler_icache)
|
if (g_settings.cpu_recompiler_icache != old_settings.cpu_recompiler_icache)
|
||||||
CPU::ClearICache();
|
CPU::ClearICache();
|
||||||
}
|
}
|
||||||
|
else if (g_settings.cpu_execution_mode == CPUExecutionMode::Interpreter &&
|
||||||
|
g_settings.bios_tty_logging != old_settings.bios_tty_logging)
|
||||||
|
{
|
||||||
|
CPU::UpdateDebugDispatcherFlag();
|
||||||
|
}
|
||||||
|
|
||||||
if (g_settings.enable_cheats != old_settings.enable_cheats)
|
if (g_settings.enable_cheats != old_settings.enable_cheats)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue