mirror of
https://git.proxmox.com/git/qemu
synced 2025-08-08 04:15:36 +00:00
PPC: Make MPC8544DS obey -cpu switch
The MPC8544DS board emulation code ignored the user defined -cpu switch. This patch enables it to only provide a sane default, not force an e500v2 CPU inside. Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
7d7ba3fece
commit
ef250db6f1
@ -178,7 +178,11 @@ static void mpc8544ds_init(ram_addr_t ram_size,
|
|||||||
qemu_irq *irqs, *mpic, *pci_irqs;
|
qemu_irq *irqs, *mpic, *pci_irqs;
|
||||||
|
|
||||||
/* Setup CPU */
|
/* Setup CPU */
|
||||||
env = cpu_ppc_init("e500v2_v30");
|
if (cpu_model == NULL) {
|
||||||
|
cpu_model = "e500v2_v30";
|
||||||
|
}
|
||||||
|
|
||||||
|
env = cpu_ppc_init(cpu_model);
|
||||||
if (!env) {
|
if (!env) {
|
||||||
fprintf(stderr, "Unable to initialize CPU!\n");
|
fprintf(stderr, "Unable to initialize CPU!\n");
|
||||||
exit(1);
|
exit(1);
|
||||||
|
Loading…
Reference in New Issue
Block a user