diff options
| author | nakeee <nakeee@gmail.com> | 2009-08-19 21:37:24 +0000 |
|---|---|---|
| committer | nakeee <nakeee@gmail.com> | 2009-08-19 21:37:24 +0000 |
| commit | b787f5f8f7709cff763c2f3a13b90455a0c8ee18 (patch) | |
| tree | 8d1a7431315b2f6eef45d32e413eecda108f9b0f /Source/Core/DSPCore/Src/DSPTables.cpp | |
| parent | 8155439dd10afe4eac39d40315fa85cbdee7be53 (diff) | |
DSPLLE: attempt to fix extended ops please review this patch carefully.
thinks to note
- All ext commands should call zeroWriteBackLog() (before changing any
reg)
- increase/decrease ar functions now only return a value not actually
change anything
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4018 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/DSPCore/Src/DSPTables.cpp')
| -rw-r--r-- | Source/Core/DSPCore/Src/DSPTables.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/Source/Core/DSPCore/Src/DSPTables.cpp b/Source/Core/DSPCore/Src/DSPTables.cpp index 7a80c014b4..b0afdeb4c8 100644 --- a/Source/Core/DSPCore/Src/DSPTables.cpp +++ b/Source/Core/DSPCore/Src/DSPTables.cpp @@ -498,8 +498,8 @@ u8 opSize[OPTABLE_SIZE]; dspInstFunc opTable[OPTABLE_SIZE]; dspInstFunc extOpTable[EXT_OPTABLE_SIZE]; bool opTableUseExt[OPTABLE_SIZE]; - -dspInstFunc currentEpilogeFunc = NULL; +u16 writeBackLog[WRITEBACKLOGSIZE]; +int writeBackLogIdx[WRITEBACKLOGSIZE]; const char* pdname(u16 val) { @@ -577,10 +577,6 @@ void InitInstructionTable() for (int j = 0; j < opcodes_size; j++) { u16 mask = opcodes[j].opcode_mask; - // if (opcodes[j].size & P_EXT) { - // Ignore extension bits. - // mask &= 0xFF00; - // } if ((mask & i) == opcodes[j].opcode) { if (opTable[i] == DSPInterpreter::unknown) @@ -596,4 +592,7 @@ void InitInstructionTable() } } } + + for (int i=0; i < WRITEBACKLOGSIZE; i++) + writeBackLogIdx[i] = -1; } |
