blob: 5ec684b5dae462039d12525f559d15618a35bdcc (
plain)
1
2
3
4
5
6
7
8
9
|
#include "cpu.h"
CPUState *cpu_create(void)
{
PowerPCCPU *cpu = g_malloc0(sizeof(PowerPCCPU));
CPUState *cs = CPU(cpu);
memcpy(cpu, POWERPC_CPU(first_cpu), sizeof(PowerPCCPU));
cs->env_ptr = &cpu->env;
return cs;
}
|