Fix crash if exit scheduled before cpus ready.e.g. clicking close on window. No whatsnew.

This commit is contained in:
Paul Priest 2010-01-10 23:40:01 +00:00
parent bec93ce35b
commit 6605a2e3e5

View File

@ -224,6 +224,7 @@ INLINE void eat_all_cpu_cycles(running_machine *machine)
{
const device_config *cpu;
if(machine->cpuexec_data)
for (cpu = machine->firstcpu; cpu != NULL; cpu = cpu_next(cpu))
cpu_eat_cycles(cpu, 1000000000);
}