Remove/cleanup some auto-"breaks" in the code. they are annoying when debugging. (jit64 hits the DSP.cpp case in animal crossing) :/
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2300 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
767d54d56f
commit
4f48594aa8
|
@ -133,7 +133,7 @@ void DisplayMessage(const char *message, int time_in_ms)
|
||||||
|
|
||||||
void Callback_DebuggerBreak()
|
void Callback_DebuggerBreak()
|
||||||
{
|
{
|
||||||
CCPU::EnableStepping(true);
|
CCPU::Break();
|
||||||
}
|
}
|
||||||
|
|
||||||
void* GetWindowHandle()
|
void* GetWindowHandle()
|
||||||
|
@ -514,7 +514,7 @@ bool SetState(EState _State)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case CORE_PAUSE:
|
case CORE_PAUSE:
|
||||||
CCPU::EnableStepping(true);
|
CCPU::EnableStepping(true); // Break
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case CORE_RUN:
|
case CORE_RUN:
|
||||||
|
|
|
@ -49,11 +49,11 @@ public:
|
||||||
// Enable or Disable Stepping
|
// Enable or Disable Stepping
|
||||||
static void EnableStepping(const bool _bStepping);
|
static void EnableStepping(const bool _bStepping);
|
||||||
|
|
||||||
|
// break, same as EnableStepping(true).
|
||||||
|
static void Break();
|
||||||
|
|
||||||
// is stepping ?
|
// is stepping ?
|
||||||
static bool IsStepping();
|
static bool IsStepping();
|
||||||
|
|
||||||
// break
|
|
||||||
static void Break();
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -347,7 +347,7 @@ void Write16(const u16 _Value, const u32 _Address)
|
||||||
case DSP_CONTROL:
|
case DSP_CONTROL:
|
||||||
{
|
{
|
||||||
UDSPControl tmpControl;
|
UDSPControl tmpControl;
|
||||||
tmpControl.Hex = (_Value& ~DSP_CONTROL_MASK) |
|
tmpControl.Hex = (_Value & ~DSP_CONTROL_MASK) |
|
||||||
(dsp->DSP_WriteControlRegister(_Value) & DSP_CONTROL_MASK);
|
(dsp->DSP_WriteControlRegister(_Value) & DSP_CONTROL_MASK);
|
||||||
|
|
||||||
// Update DSP related flags
|
// Update DSP related flags
|
||||||
|
@ -374,8 +374,7 @@ void Write16(const u16 _Value, const u32 _Address)
|
||||||
g_dspState.DSPControl.pad = tmpControl.pad;
|
g_dspState.DSPControl.pad = tmpControl.pad;
|
||||||
if (g_dspState.DSPControl.pad != 0)
|
if (g_dspState.DSPControl.pad != 0)
|
||||||
{
|
{
|
||||||
LOG(DSPINTERFACE, "DSPInterface(w) g_dspState.DSPControl gets an unknown value");
|
PanicAlert("DSPInterface(w) g_dspState.DSPControl gets a value with junk in the padding %08x", _Value);
|
||||||
CCPU::Break();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
UpdateInterrupts();
|
UpdateInterrupts();
|
||||||
|
|
|
@ -142,7 +142,6 @@ void ReadFromHardware(T &_var, u32 em_address, u32 effective_address, Memory::XC
|
||||||
_var = bswap((*(const T*)&m_pFakeVMEM[em_address & FAKEVMEM_MASK]));
|
_var = bswap((*(const T*)&m_pFakeVMEM[em_address & FAKEVMEM_MASK]));
|
||||||
}
|
}
|
||||||
else {/* LOG(MEMMAP,"READ (unknown): %08x (PC: %08x)",em_address,PC);*/
|
else {/* LOG(MEMMAP,"READ (unknown): %08x (PC: %08x)",em_address,PC);*/
|
||||||
/*CCPU::EnableStepping(TRUE);*/
|
|
||||||
/*PanicAlert("READ: Unknown Address", "1", MB_OK);*/
|
/*PanicAlert("READ: Unknown Address", "1", MB_OK);*/
|
||||||
u32 TmpAddress = CheckDTLB(effective_address, flag);
|
u32 TmpAddress = CheckDTLB(effective_address, flag);
|
||||||
TmpAddress = (TmpAddress & 0xFFFFFFF0) | (em_address & 0xF);
|
TmpAddress = (TmpAddress & 0xFFFFFFF0) | (em_address & 0xF);
|
||||||
|
@ -219,7 +218,6 @@ void WriteToHardware(u32 em_address, const T data, u32 effective_address, Memory
|
||||||
}
|
}
|
||||||
/* LOG(MEMMAP,"WRITE: %08x (PC: %08x)",em_address,PC);*/
|
/* LOG(MEMMAP,"WRITE: %08x (PC: %08x)",em_address,PC);*/
|
||||||
/*MessageBox(NULL, "WRITE: unknown Address", "1", MB_OK);*/
|
/*MessageBox(NULL, "WRITE: unknown Address", "1", MB_OK);*/
|
||||||
/*CCPU::EnableStepping(TRUE);*/
|
|
||||||
u32 tmpAddress = CheckDTLB(effective_address, flag);
|
u32 tmpAddress = CheckDTLB(effective_address, flag);
|
||||||
tmpAddress = (tmpAddress & 0xFFFFFFF0) | (em_address & 0xF);
|
tmpAddress = (tmpAddress & 0xFFFFFFF0) | (em_address & 0xF);
|
||||||
*(T*)&m_pRAM[tmpAddress & RAM_MASK] = bswap(data);
|
*(T*)&m_pRAM[tmpAddress & RAM_MASK] = bswap(data);
|
||||||
|
|
|
@ -130,7 +130,6 @@ void HWCALL Read32(u32& _rReturnValue, const u32 _Address)
|
||||||
_rReturnValue = g_IPC_Control.Hex;
|
_rReturnValue = g_IPC_Control.Hex;
|
||||||
|
|
||||||
LOGV(WII_IPC, 2, "IOP: Read32 from IPC_CONTROL_REGISTER(0x04) = 0x%08x", _rReturnValue);
|
LOGV(WII_IPC, 2, "IOP: Read32 from IPC_CONTROL_REGISTER(0x04) = 0x%08x", _rReturnValue);
|
||||||
// CCPU::Break();
|
|
||||||
|
|
||||||
// if ((REASON_REG & 0x14) == 0x14) CALL IPCReplayHanlder
|
// if ((REASON_REG & 0x14) == 0x14) CALL IPCReplayHanlder
|
||||||
// if ((REASON_REG & 0x22) != 0x22) Jumps to the end
|
// if ((REASON_REG & 0x22) != 0x22) Jumps to the end
|
||||||
|
|
|
@ -405,9 +405,6 @@ void ExecuteCommand(u32 _Address)
|
||||||
default:
|
default:
|
||||||
_dbg_assert_msg_(WII_IPC_HLE, 0, "Unknown IPC Command %i (0x%08x)", Command, _Address);
|
_dbg_assert_msg_(WII_IPC_HLE, 0, "Unknown IPC Command %i (0x%08x)", Command, _Address);
|
||||||
// Break on the same terms as the _dbg_assert_msg_, if LOGGING was defined
|
// Break on the same terms as the _dbg_assert_msg_, if LOGGING was defined
|
||||||
#ifdef LOGGING
|
|
||||||
CCPU::Break();
|
|
||||||
#endif
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -74,7 +74,6 @@ void patches()
|
||||||
if (command == 0x0b13)
|
if (command == 0x0b13)
|
||||||
{
|
{
|
||||||
PanicAlert("command: %x", command);
|
PanicAlert("command: %x", command);
|
||||||
CCPU::Break();
|
|
||||||
}
|
}
|
||||||
}*/
|
}*/
|
||||||
}
|
}
|
||||||
|
@ -105,9 +104,9 @@ void SingleStepInner(void)
|
||||||
last_pc = PC;
|
last_pc = PC;
|
||||||
PC = NPC;
|
PC = NPC;
|
||||||
|
|
||||||
if (PowerPC::ppcState.gpr[1] == 0) {
|
if (PowerPC::ppcState.gpr[1] == 0)
|
||||||
|
{
|
||||||
printf("%i Corrupt stack", PowerPC::ppcState.DebugCount);
|
printf("%i Corrupt stack", PowerPC::ppcState.DebugCount);
|
||||||
// CCPU::Break();
|
|
||||||
}
|
}
|
||||||
#if defined(_DEBUG) || defined(DEBUGFAST)
|
#if defined(_DEBUG) || defined(DEBUGFAST)
|
||||||
PowerPC::ppcState.DebugCount++;
|
PowerPC::ppcState.DebugCount++;
|
||||||
|
@ -150,7 +149,7 @@ void Run()
|
||||||
if (BreakPoints::IsAddressBreakPoint(PC))
|
if (BreakPoints::IsAddressBreakPoint(PC))
|
||||||
{
|
{
|
||||||
LOG(GEKKO, "Hit Breakpoint - %08x", PC);
|
LOG(GEKKO, "Hit Breakpoint - %08x", PC);
|
||||||
CCPU::EnableStepping(true);
|
CCPU::Break();
|
||||||
if (BreakPoints::IsTempBreakPoint(PC))
|
if (BreakPoints::IsTempBreakPoint(PC))
|
||||||
BreakPoints::Remove(PC);
|
BreakPoints::Remove(PC);
|
||||||
|
|
||||||
|
@ -190,7 +189,6 @@ void Run()
|
||||||
|
|
||||||
void unknown_instruction(UGeckoInstruction _inst)
|
void unknown_instruction(UGeckoInstruction _inst)
|
||||||
{
|
{
|
||||||
CCPU::Break();
|
|
||||||
char disasm[256];
|
char disasm[256];
|
||||||
DisassembleGekko(Memory::ReadUnchecked_U32(last_pc), last_pc, disasm, 256);
|
DisassembleGekko(Memory::ReadUnchecked_U32(last_pc), last_pc, disasm, 256);
|
||||||
printf("Last PC = %08x : %s\n", last_pc, disasm);
|
printf("Last PC = %08x : %s\n", last_pc, disasm);
|
||||||
|
|
|
@ -695,7 +695,7 @@ void CCodeWindow::OnCodeStep(wxCommandEvent& event)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
CCPU::EnableStepping(true);
|
CCPU::EnableStepping(true); // Break
|
||||||
Host_UpdateLogDisplay();
|
Host_UpdateLogDisplay();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -708,7 +708,7 @@ void CCodeWindow::OnCodeStep(wxCommandEvent& event)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case IDM_STEPOVER:
|
case IDM_STEPOVER:
|
||||||
CCPU::EnableStepping(true);
|
CCPU::EnableStepping(true); // TODO: Huh?
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case IDM_SKIP:
|
case IDM_SKIP:
|
||||||
|
|
Loading…
Reference in New Issue