mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2024-11-22 22:05:38 +00:00
This commit is contained in:
parent
57e8694a3f
commit
3647f61213
|
@ -533,6 +533,9 @@ INLINE void ppc_set_spr(int spr, UINT32 value)
|
||||||
ppc_stolen_cycles += ppc_icount;
|
ppc_stolen_cycles += ppc_icount;
|
||||||
ppc_icount = 0;
|
ppc_icount = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DEC = value;
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
write_decrementer(value);
|
write_decrementer(value);
|
||||||
return;
|
return;
|
||||||
|
@ -632,11 +635,14 @@ INLINE void ppc_set_msr(UINT32 value)
|
||||||
if( value & (MSR_ILE | MSR_LE) )
|
if( value & (MSR_ILE | MSR_LE) )
|
||||||
error("ppc: set_msr: little_endian mode not supported !");
|
error("ppc: set_msr: little_endian mode not supported !");
|
||||||
|
|
||||||
|
if (value & MSR_EE)
|
||||||
|
{
|
||||||
if (ppc.interrupt_pending != 0)
|
if (ppc.interrupt_pending != 0)
|
||||||
{
|
{
|
||||||
ppc_stolen_cycles = ppc_icount;
|
ppc_stolen_cycles = ppc_icount;
|
||||||
ppc_icount = 0;
|
ppc_icount = 0;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
MSR = value;
|
MSR = value;
|
||||||
}
|
}
|
||||||
|
@ -950,7 +956,7 @@ void ppc_init(const PPC_CONFIG *config)
|
||||||
default: break;
|
default: break;
|
||||||
}
|
}
|
||||||
|
|
||||||
ppc_dec_divider = (int)(multiplier * 2);
|
ppc_dec_divider = (int)(multiplier * 4);
|
||||||
|
|
||||||
if (pll_config == -1)
|
if (pll_config == -1)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue