From db3d457e5f4b37b9271407db920362e5d37d9a94 Mon Sep 17 00:00:00 2001 From: Pokechu22 Date: Mon, 23 May 2022 17:04:27 -0700 Subject: [PATCH] DSPDisassembler: Remove redundant definition of CW CW is used as a fallback to write a full instruction as hex, but we already declare it in DSPTables.h for the assembler. --- Source/Core/Core/DSP/DSPDisassembler.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Source/Core/Core/DSP/DSPDisassembler.cpp b/Source/Core/Core/DSP/DSPDisassembler.cpp index ea78d237a6..01817c0780 100644 --- a/Source/Core/Core/DSP/DSPDisassembler.cpp +++ b/Source/Core/Core/DSP/DSPDisassembler.cpp @@ -152,10 +152,8 @@ bool DSPDisassembler::DisassembleOpcode(const u16* binbuf, u16* pc, std::string& // Find main opcode const DSPOPCTemplate* opc = FindOpInfoByOpcode(op1); - const DSPOPCTemplate fake_op = {"CW", 0x0000, 0x0000, 1, 1, {{P_VAL, 2, 0, 0, 0xffff}}, - false, false, false, false, false}; if (!opc) - opc = &fake_op; + opc = &cw; bool is_extended = false; bool is_only_7_bit_ext = false;