diff options
| author | JMC47 <JMC4789@gmail.com> | 2022-01-23 05:38:20 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-23 05:38:20 -0500 |
| commit | 481c8596de2748dc31093570e3061db4d4308eb5 (patch) | |
| tree | d289138fbfa228a28d94766d41734184ccef5096 /Source/Core/VideoCommon/OpcodeDecoding.cpp | |
| parent | 237947e2f139a033da71e733c5e6e24d61b5142d (diff) | |
| parent | 8d7eff2a8a5ffc204565e554dc0a71206f7032a4 (diff) | |
Merge pull request #10389 from Pokechu22/low-unknown-opcode
OpcodeDecoding: Don't raise panic alerts for unknown opcodes 0x01-0x07
Diffstat (limited to 'Source/Core/VideoCommon/OpcodeDecoding.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/OpcodeDecoding.cpp | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/Source/Core/VideoCommon/OpcodeDecoding.cpp b/Source/Core/VideoCommon/OpcodeDecoding.cpp index 63734db384..3f90a2b6e3 100644 --- a/Source/Core/VideoCommon/OpcodeDecoding.cpp +++ b/Source/Core/VideoCommon/OpcodeDecoding.cpp @@ -32,14 +32,8 @@ namespace OpcodeDecoder { -static bool s_is_fifo_error_seen = false; bool g_record_fifo_data = false; -void Init() -{ - s_is_fifo_error_seen = false; -} - template <bool is_preprocess> class RunCallback final : public Callback { @@ -193,13 +187,7 @@ public: } OPCODE_CALLBACK(void OnUnknown(u8 opcode, const u8* data)) { - if (static_cast<Opcode>(opcode) == Opcode::GX_UNKNOWN_RESET) - { - // Datel software uses this command - m_cycles += 6; - DEBUG_LOG_FMT(VIDEO, "GX Reset?"); - } - else if (static_cast<Opcode>(opcode) == Opcode::GX_CMD_UNKNOWN_METRICS) + if (static_cast<Opcode>(opcode) == Opcode::GX_CMD_UNKNOWN_METRICS) { // 'Zelda Four Swords' calls it and checks the metrics registers after that m_cycles += 6; @@ -213,11 +201,7 @@ public: } else { - if (!s_is_fifo_error_seen) - CommandProcessor::HandleUnknownOpcode(opcode, data, is_preprocess); - ERROR_LOG_FMT(VIDEO, "FIFO: Unknown Opcode({:#04x} @ {}, preprocessing = {})", opcode, - fmt::ptr(data), is_preprocess ? "yes" : "no"); - s_is_fifo_error_seen = true; + CommandProcessor::HandleUnknownOpcode(opcode, data, is_preprocess); m_cycles += 1; } } |
