static void tilegx_cpu_reset(CPUState *s) { TileGXCPU *cpu = TILEGX_CPU(s); TileGXCPUClass *tcc = TILEGX_CPU_GET_CLASS(cpu); CPUTLGState *env = &cpu->env; tcc->parent_reset(s); memset(env, 0, offsetof(CPUTLGState, end_reset_fields)); }
static void tilegx_cpu_realizefn(DeviceState *dev, Error **errp) { CPUState *cs = CPU(dev); TileGXCPUClass *tcc = TILEGX_CPU_GET_CLASS(dev); cpu_reset(cs); qemu_init_vcpu(cs); tcc->parent_realize(dev, errp); }
static void tilegx_cpu_reset(CPUState *s) { TileGXCPU *cpu = TILEGX_CPU(s); TileGXCPUClass *tcc = TILEGX_CPU_GET_CLASS(cpu); CPUTLGState *env = &cpu->env; tcc->parent_reset(s); memset(env, 0, sizeof(CPUTLGState)); tlb_flush(s, 1); }
static void tilegx_cpu_realizefn(DeviceState *dev, Error **errp) { CPUState *cs = CPU(dev); TileGXCPUClass *tcc = TILEGX_CPU_GET_CLASS(dev); Error *local_err = NULL; cpu_exec_realizefn(cs, &local_err); if (local_err != NULL) { error_propagate(errp, local_err); return; } cpu_reset(cs); qemu_init_vcpu(cs); tcc->parent_realize(dev, errp); }