cpu_models.c (7e0019a7196ebed177c95824875cf852e1a6f667) | cpu_models.c (7dc847ebba953db90853d15f140c20eef74d4fb2) |
---|---|
1/* 2 * CPU models for s390x 3 * 4 * Copyright 2016 IBM Corp. 5 * 6 * Author(s): David Hildenbrand <dahi@linux.vnet.ibm.com> 7 * 8 * This work is licensed under the terms of the GNU GPL, version 2 or (at --- 439 unchanged lines hidden (view full) --- 448 const QDict *qdict = NULL; 449 const QDictEntry *e; 450 Visitor *visitor; 451 ObjectClass *oc; 452 S390CPU *cpu; 453 Object *obj; 454 455 if (info->props) { | 1/* 2 * CPU models for s390x 3 * 4 * Copyright 2016 IBM Corp. 5 * 6 * Author(s): David Hildenbrand <dahi@linux.vnet.ibm.com> 7 * 8 * This work is licensed under the terms of the GNU GPL, version 2 or (at --- 439 unchanged lines hidden (view full) --- 448 const QDict *qdict = NULL; 449 const QDictEntry *e; 450 Visitor *visitor; 451 ObjectClass *oc; 452 S390CPU *cpu; 453 Object *obj; 454 455 if (info->props) { |
456 qdict = qobject_to_qdict(info->props); | 456 qdict = qobject_to(QDict, info->props); |
457 if (!qdict) { 458 error_setg(errp, QERR_INVALID_PARAMETER_TYPE, "props", "dict"); 459 return; 460 } 461 } 462 463 oc = cpu_class_by_name(TYPE_S390_CPU, info->name); 464 if (!oc) { --- 861 unchanged lines hidden --- | 457 if (!qdict) { 458 error_setg(errp, QERR_INVALID_PARAMETER_TYPE, "props", "dict"); 459 return; 460 } 461 } 462 463 oc = cpu_class_by_name(TYPE_S390_CPU, info->name); 464 if (!oc) { --- 861 unchanged lines hidden --- |