mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-26 15:55:31 +01:00
DSPLLE: trying to optimize a bit (based on drkrazi's suggestion)
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4019 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
b787f5f8f7
commit
56c4eea4c1
@ -378,21 +378,22 @@ void nop(const UDSPInstruction& opc)
|
|||||||
} // end namespace ext
|
} // end namespace ext
|
||||||
} // end namespace DSPInterpeter
|
} // end namespace DSPInterpeter
|
||||||
|
|
||||||
void applyWriteBackLog()
|
void applyWriteBackLog()
|
||||||
{
|
{
|
||||||
for (int i=0;i < WRITEBACKLOGSIZE;i++) {
|
//always make sure to have an extra entry at the end w/ -1 to avoid
|
||||||
|
//infinitive loops
|
||||||
if (writeBackLogIdx[i] != -1) {
|
for (int i=0;writeBackLogIdx[i]!=-1;i++) {
|
||||||
dsp_op_write_reg(writeBackLogIdx[i], g_dsp.r[writeBackLogIdx[i]] | writeBackLog[i]);
|
dsp_op_write_reg(writeBackLogIdx[i], g_dsp.r[writeBackLogIdx[i]] | writeBackLog[i]);
|
||||||
// Clear back log
|
// Clear back log
|
||||||
writeBackLogIdx[i] = -1;
|
writeBackLogIdx[i] = -1;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void zeroWriteBackLog()
|
void zeroWriteBackLog()
|
||||||
{
|
{
|
||||||
for (int i=0;i < WRITEBACKLOGSIZE;i++)
|
//always make sure to have an extra entry at the end w/ -1 to avoid
|
||||||
if (writeBackLogIdx[i] != -1)
|
//infinitive loops
|
||||||
dsp_op_write_reg(writeBackLogIdx[i], 0);
|
for (int i=0;writeBackLogIdx[i]!=-1;i++)
|
||||||
|
dsp_op_write_reg(writeBackLogIdx[i], 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user