diff options
| author | Mat M <mathew1800@gmail.com> | 2017-01-28 06:43:23 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-01-28 06:43:23 -0500 |
| commit | ede9c6255a911d53f2ac06890d8a6361d4040007 (patch) | |
| tree | bcf06fc63d1996fe28b83ed83290840975da30ed /Source/Core/VideoCommon/OpcodeDecoding.cpp | |
| parent | 04c3db8bfaf634b8e6fb4cbeb47e4f04dd4f6247 (diff) | |
| parent | 3787af9ee9ca3279f437e17b1a343f6aa7a091ef (diff) | |
Merge pull request #4770 from degasus/fifo
CommandProcessor: Limit scope of ugly SCPFifoStruct.
Diffstat (limited to 'Source/Core/VideoCommon/OpcodeDecoding.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/OpcodeDecoding.cpp | 43 |
1 files changed, 1 insertions, 42 deletions
diff --git a/Source/Core/VideoCommon/OpcodeDecoding.cpp b/Source/Core/VideoCommon/OpcodeDecoding.cpp index a0b73effaf..5299401f68 100644 --- a/Source/Core/VideoCommon/OpcodeDecoding.cpp +++ b/Source/Core/VideoCommon/OpcodeDecoding.cpp @@ -75,47 +75,6 @@ static void InterpretDisplayListPreprocess(u32 address, u32 size) } } -static void UnknownOpcode(u8 cmd_byte, void* buffer, bool preprocess) -{ - // TODO(Omega): Maybe dump FIFO to file on this error - PanicAlertT("GFX FIFO: Unknown Opcode (0x%02x @ %p, %s).\n" - "This means one of the following:\n" - "* The emulated GPU got desynced, disabling dual core can help\n" - "* Command stream corrupted by some spurious memory bug\n" - "* This really is an unknown opcode (unlikely)\n" - "* Some other sort of bug\n\n" - "Further errors will be sent to the Video Backend log and\n" - "Dolphin will now likely crash or hang. Enjoy.", - cmd_byte, buffer, preprocess ? "preprocess=true" : "preprocess=false"); - - { - SCPFifoStruct& fifo = CommandProcessor::fifo; - - PanicAlert("Illegal command %02x\n" - "CPBase: 0x%08x\n" - "CPEnd: 0x%08x\n" - "CPHiWatermark: 0x%08x\n" - "CPLoWatermark: 0x%08x\n" - "CPReadWriteDistance: 0x%08x\n" - "CPWritePointer: 0x%08x\n" - "CPReadPointer: 0x%08x\n" - "CPBreakpoint: 0x%08x\n" - "bFF_GPReadEnable: %s\n" - "bFF_BPEnable: %s\n" - "bFF_BPInt: %s\n" - "bFF_Breakpoint: %s\n" - "bFF_GPLinkEnable: %s\n" - "bFF_HiWatermarkInt: %s\n" - "bFF_LoWatermarkInt: %s\n", - cmd_byte, fifo.CPBase, fifo.CPEnd, fifo.CPHiWatermark, fifo.CPLoWatermark, - fifo.CPReadWriteDistance, fifo.CPWritePointer, fifo.CPReadPointer, fifo.CPBreakpoint, - fifo.bFF_GPReadEnable ? "true" : "false", fifo.bFF_BPEnable ? "true" : "false", - fifo.bFF_BPInt ? "true" : "false", fifo.bFF_Breakpoint ? "true" : "false", - fifo.bFF_GPLinkEnable ? "true" : "false", fifo.bFF_HiWatermarkInt ? "true" : "false", - fifo.bFF_LoWatermarkInt ? "true" : "false"); - } -} - void Init() { s_bFifoErrorSeen = false; @@ -277,7 +236,7 @@ u8* Run(DataReader src, u32* cycles, bool in_display_list) else { if (!s_bFifoErrorSeen) - UnknownOpcode(cmd_byte, opcodeStart, is_preprocess); + CommandProcessor::HandleUnknownOpcode(cmd_byte, opcodeStart, is_preprocess); ERROR_LOG(VIDEO, "FIFO: Unknown Opcode(0x%02x @ %p, preprocessing = %s)", cmd_byte, opcodeStart, is_preprocess ? "yes" : "no"); s_bFifoErrorSeen = true; |
