Skip to content

Commit

Permalink
ppc440_bamboo: Add 0.12 and 0.13 machine types for backward compat
Browse files Browse the repository at this point in the history
Add a 0.12 machine type for compatibility with older versions. Mark the
default one as 0.13.

Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
  • Loading branch information
amit3s authored and aurel32 committed Mar 6, 2010
1 parent ad50973 commit 977b6b9
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion hw/ppc440_bamboo.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,14 +173,23 @@ static void bamboo_init(ram_addr_t ram_size,
}

static QEMUMachine bamboo_machine = {
.name = "bamboo",
.name = "bamboo-0.13",
.alias = "bamboo",
.desc = "bamboo",
.init = bamboo_init,
.is_default = 1,
};

static QEMUMachine bamboo_machine_v0_12 = {
.name = "bamboo-0.12",
.desc = "bamboo",
.init = bamboo_init,
};

static void bamboo_machine_init(void)
{
qemu_register_machine(&bamboo_machine);
qemu_register_machine(&bamboo_machine_v0_12);
}

machine_init(bamboo_machine_init);

0 comments on commit 977b6b9

Please sign in to comment.