Revision 51fb256a target-ppc/translate_init.c

b/target-ppc/translate_init.c
8267 8267
PowerPCCPU *cpu_ppc_init(const char *cpu_model)
8268 8268
{
8269 8269
    PowerPCCPU *cpu;
8270
    CPUPPCState *env;
8271 8270
    ObjectClass *oc;
8272 8271
    Error *err = NULL;
8273 8272

  
......
8277 8276
    }
8278 8277

  
8279 8278
    cpu = POWERPC_CPU(object_new(object_class_get_name(oc)));
8280
    env = &cpu->env;
8281
    env->cpu_model_str = cpu_model;
8282 8279

  
8283 8280
    object_property_set_bool(OBJECT(cpu), true, "realized", &err);
8284 8281
    if (err != NULL) {

Also available in: Unified diff