Skip to content

Commit

Permalink
mac_oldworld: use node name instead of alias name for hd device in FW…
Browse files Browse the repository at this point in the history
…PathProvider

When using -drive to configure the hd drive for the Old World machine, the node
name "disk" should be used instead of the "hd" alias.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Message-Id: <20190307212058.4890-2-mark.cave-ayland@ilande.co.uk>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
(cherry picked from commit 484d366)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
  • Loading branch information
mcayland authored and mdroth committed Mar 28, 2019
1 parent 847fe10 commit 4a25ba2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hw/ppc/mac_oldworld.c
Expand Up @@ -404,11 +404,11 @@ static char *heathrow_fw_dev_path(FWPathProvider *p, BusState *bus,
return g_strdup("cdrom");
}

return g_strdup("hd");
return g_strdup("disk");
}

if (!strcmp(object_get_typename(OBJECT(dev)), "ide-hd")) {
return g_strdup("hd");
return g_strdup("disk");
}

if (!strcmp(object_get_typename(OBJECT(dev)), "ide-cd")) {
Expand Down

0 comments on commit 4a25ba2

Please sign in to comment.