mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
PowerPC: Get rid of the 'cr' field which was obsoleted by the new 'cr_fast'
This commit is contained in:
@ -39,21 +39,21 @@ BreakPoints breakpoints;
|
||||
MemChecks memchecks;
|
||||
PPCDebugInterface debug_interface;
|
||||
|
||||
void CompactCR()
|
||||
u32 CompactCR()
|
||||
{
|
||||
u32 new_cr = ppcState.cr_fast[0] << 28;
|
||||
for (int i = 1; i < 8; i++)
|
||||
{
|
||||
new_cr |= ppcState.cr_fast[i] << (28 - i * 4);
|
||||
}
|
||||
ppcState.cr = new_cr;
|
||||
return new_cr;
|
||||
}
|
||||
|
||||
void ExpandCR()
|
||||
void ExpandCR(u32 cr)
|
||||
{
|
||||
for (int i = 0; i < 8; i++)
|
||||
{
|
||||
ppcState.cr_fast[i] = (ppcState.cr >> (28 - i * 4)) & 0xF;
|
||||
ppcState.cr_fast[i] = (cr >> (28 - i * 4)) & 0xF;
|
||||
}
|
||||
}
|
||||
|
||||
@ -95,7 +95,6 @@ void ResetRegisters()
|
||||
ppcState.spr[SPR_ECID_M] = 0x1840c00d;
|
||||
ppcState.spr[SPR_ECID_L] = 0x82bb08e8;
|
||||
|
||||
ppcState.cr = 0;
|
||||
ppcState.fpscr = 0;
|
||||
ppcState.pc = 0;
|
||||
ppcState.npc = 0;
|
||||
|
Reference in New Issue
Block a user