e500plat.c (97052d64e4fb934bcf25f4a6b42dc06f6ecbf9eb) | e500plat.c (e264d29de28c5b0be3d063307ce9fb613b427cc3) |
---|---|
1/* 2 * Generic device-tree-driven paravirt PPC e500 platform 3 * 4 * Copyright 2012 Freescale Semiconductor, Inc. 5 * 6 * This is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or --- 43 unchanged lines hidden (view full) --- 52 MPIC variants that support EPR. Revert to an older one for those */ 53 if (kvm_enabled() && !kvmppc_has_cap_epr()) { 54 params.mpic_version = OPENPIC_MODEL_FSL_MPIC_20; 55 } 56 57 ppce500_init(machine, ¶ms); 58} 59 | 1/* 2 * Generic device-tree-driven paravirt PPC e500 platform 3 * 4 * Copyright 2012 Freescale Semiconductor, Inc. 5 * 6 * This is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or --- 43 unchanged lines hidden (view full) --- 52 MPIC variants that support EPR. Revert to an older one for those */ 53 if (kvm_enabled() && !kvmppc_has_cap_epr()) { 54 params.mpic_version = OPENPIC_MODEL_FSL_MPIC_20; 55 } 56 57 ppce500_init(machine, ¶ms); 58} 59 |
60static QEMUMachine e500plat_machine = { 61 .name = "ppce500", 62 .desc = "generic paravirt e500 platform", 63 .init = e500plat_init, 64 .max_cpus = 32, 65 .has_dynamic_sysbus = true, 66}; 67 68static void e500plat_machine_init(void) | 60static void e500plat_machine_init(MachineClass *mc) |
69{ | 61{ |
70 qemu_register_machine(&e500plat_machine); | 62 mc->desc = "generic paravirt e500 platform"; 63 mc->init = e500plat_init; 64 mc->max_cpus = 32; 65 mc->has_dynamic_sysbus = true; |
71} 72 | 66} 67 |
73machine_init(e500plat_machine_init); | 68DEFINE_MACHINE("ppce500", e500plat_machine_init) |