From 27dcf92faa8748fbcdbc13ab57e3db75b5439412 Mon Sep 17 00:00:00 2001 From: Sepalani Date: Mon, 10 Apr 2017 18:29:26 +0100 Subject: [PATCH] PPCTables: Do not consider OPTYPE_UNKNOWN as valid instruction --- Source/Core/Core/PowerPC/PPCTables.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Core/PowerPC/PPCTables.cpp b/Source/Core/Core/PowerPC/PPCTables.cpp index 5bfc188fd3..5cb53269a9 100644 --- a/Source/Core/Core/PowerPC/PPCTables.cpp +++ b/Source/Core/Core/PowerPC/PPCTables.cpp @@ -131,7 +131,7 @@ const char* GetInstructionName(UGeckoInstruction _inst) bool IsValidInstruction(UGeckoInstruction _inst) { const GekkoOPInfo* info = GetOpInfo(_inst); - return info != nullptr; + return info != nullptr && info->type != OPTYPE_UNKNOWN; } void CountInstruction(UGeckoInstruction _inst)