Skip to content

Commit

Permalink
Merge pull request #1836 from FioraAeterna/catchillegalinst
Browse files Browse the repository at this point in the history
JIT: catch illegal instruction errors
  • Loading branch information
degasus committed Jan 6, 2015
2 parents f63361a + 8f7c799 commit a2ec4d5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Source/Core/Core/PowerPC/PPCAnalyst.cpp
Expand Up @@ -673,6 +673,11 @@ u32 PPCAnalyzer::Analyze(u32 address, CodeBlock *block, CodeBuffer *buffer, u32
num_inst++;
memset(&code[i], 0, sizeof(CodeOp));
GekkoOPInfo *opinfo = GetOpInfo(inst);
if (!opinfo)
{
PanicAlert("Invalid PowerPC opcode: %x.", inst.hex);
Crash();
}

code[i].opinfo = opinfo;
code[i].address = address;
Expand Down

0 comments on commit a2ec4d5

Please sign in to comment.