diff options
Diffstat (limited to 'target-ppc/helper.c')
-rw-r--r-- | target-ppc/helper.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/target-ppc/helper.c b/target-ppc/helper.c new file mode 100644 index 0000000..5ec684b --- /dev/null +++ b/target-ppc/helper.c @@ -0,0 +1,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; +} |