mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 05:47:56 -07:00
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:
parent
69869bfd7c
commit
188ad88125
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user