# HG changeset patch # User Hollis Blanchard <hollisb@xxxxxxxxxx> # Date 1216845007 18000 # Node ID 40d8ba7ccef06cdb99af00a28825c4c80bb3dbf6 # Parent b1d0e9c44b7ce0ca8035582ab791a451eec141ca kvm: ppc: qemu: Fix 440 CPU initialization Qemu doesn't implement 440 emulation, so pretend we're 405 instead. (We used to provide our own cpu_ppc_find_by_name() function that allowed us to use "440".) This fixes a fatal runtime error introduced in a recent upstream qemu merge. Signed-off-by: Hollis Blanchard <hollisb@xxxxxxxxxx> diff --git a/qemu/hw/ppc440_bamboo.c b/qemu/hw/ppc440_bamboo.c --- a/qemu/hw/ppc440_bamboo.c +++ b/qemu/hw/ppc440_bamboo.c @@ -77,10 +77,12 @@ void bamboo_init(ram_addr_t ram_size, in mem_reg_property[2] = ram_size; } - /* Setup CPU */ - env = cpu_ppc_init("440"); + /* Setup CPU. + * XXX Since qemu doesn't implement 440, we just say it's a 405. Since + * we don't use qemu's CPU emulation it seems to be working OK. */ + env = cpu_ppc_init("405"); if (!env) { - fprintf(stderr, "Unable to initilize CPU!\n"); + fprintf(stderr, "Unable to initialize CPU!\n"); exit(1); } -- To unsubscribe from this list: send the line "unsubscribe kvm-ppc" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html