diff options
| author | Mat M <mathew1800@gmail.com> | 2017-04-10 16:50:22 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-04-10 16:50:22 -0400 |
| commit | ae80a7541d1561bbd46fc53c6db14d02445497c0 (patch) | |
| tree | dfedf4027c6aa8c0d6cc3fcf1fcb35a88def64b1 /Source | |
| parent | 34ac749b8b48f157f298d3f7504c88c7ffcab658 (diff) | |
| parent | 27dcf92faa8748fbcdbc13ab57e3db75b5439412 (diff) | |
Merge pull request #5239 from sepalani/is-valid-instruction
PPCTables: Do not consider OPTYPE_UNKNOWN as valid instruction
Diffstat (limited to 'Source')
| -rw-r--r-- | Source/Core/Core/PowerPC/PPCTables.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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) |
