summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/OpcodeDecoding.cpp
diff options
context:
space:
mode:
authorPokechu22 <Pokechu022@gmail.com>2022-01-22 22:02:20 -0800
committerPokechu22 <Pokechu022@gmail.com>2022-01-22 22:04:15 -0800
commit8d7eff2a8a5ffc204565e554dc0a71206f7032a4 (patch)
treed289138fbfa228a28d94766d41734184ccef5096 /Source/Core/VideoCommon/OpcodeDecoding.cpp
parent79b2185117bb2ecba4d069d9eb1ff6f2280905d0 (diff)
VideoCommon: Move logging/seen check for unknown opcodes into CommandProcessor
That way, they're in the same place the panic alerts are generated.
Diffstat (limited to 'Source/Core/VideoCommon/OpcodeDecoding.cpp')
-rw-r--r--Source/Core/VideoCommon/OpcodeDecoding.cpp20
1 files changed, 1 insertions, 19 deletions
diff --git a/Source/Core/VideoCommon/OpcodeDecoding.cpp b/Source/Core/VideoCommon/OpcodeDecoding.cpp
index aac4d023a8..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
{
@@ -207,19 +201,7 @@ public:
}
else
{
- // Datel software uses 0x01 during startup, and Mario Party 5's Wiggler capsule
- // accidentally uses 0x01-0x03 due to sending 4 more vertices than intended.
- // Hardware testing indicates that 0x01-0x07 do nothing, so to avoid annoying the user with
- // spurious popups, we don't create a panic alert in those cases. Other unknown opcodes
- // (such as 0x18) seem to result in hangs.
- if (!s_is_fifo_error_seen && opcode > 0x07)
- {
- CommandProcessor::HandleUnknownOpcode(opcode, data, is_preprocess);
- s_is_fifo_error_seen = true;
- }
-
- ERROR_LOG_FMT(VIDEO, "FIFO: Unknown Opcode({:#04x} @ {}, preprocessing = {})", opcode,
- fmt::ptr(data), is_preprocess ? "yes" : "no");
+ CommandProcessor::HandleUnknownOpcode(opcode, data, is_preprocess);
m_cycles += 1;
}
}