LOL, forgot the check

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2834 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
nakeee 2009-04-02 13:41:04 +00:00
parent 69869bfd7c
commit 188ad88125

View File

@ -252,9 +252,13 @@ void InitInstructionTable()
opTable[i] = DSPInterpreter::unknown;
for(u32 i = 0; i < OPTABLE_SIZE; i++) {
for(u32 j = 0; j < opcodes_size; j++)
if((opcodes[j].opcode_mask & i) == opcodes[j].opcode_mask)
opTable[i] = opcodes[j].interpFunc;
for(u32 j = 0; j < opcodes_size; j++)
if((opcodes[j].opcode_mask & i) == opcodes[j].opcode_mask) {
if (opTable[i] != DSPInterpreter::unknown)
opTable[i] = opcodes[j].interpFunc;
else
ERROR_LOG(DSPHLE, "opcode table place %d already in use for %d", i, j);
}
}
}