提交 ef250db6 编写于 作者: A Alexander Graf

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: NAlexander Graf <agraf@suse.de>
上级 7d7ba3fe
......@@ -178,7 +178,11 @@ static void mpc8544ds_init(ram_addr_t ram_size,
qemu_irq *irqs, *mpic, *pci_irqs;
/* Setup CPU */
env = cpu_ppc_init("e500v2_v30");
if (cpu_model == NULL) {
cpu_model = "e500v2_v30";
}
env = cpu_ppc_init(cpu_model);
if (!env) {
fprintf(stderr, "Unable to initialize CPU!\n");
exit(1);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册