aboutsummaryrefslogtreecommitdiff
path: root/hw/ppc440_bamboo.c
diff options
context:
space:
mode:
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2009-01-15 20:08:19 +0000
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2009-01-15 20:08:19 +0000
commit5fc1503efc552e0ae0d9fec070d5784f51fce6b9 (patch)
tree759b9f6a34f2e02bf5d133de3d433f73edcc8965 /hw/ppc440_bamboo.c
parenta2fa19f92c914caece0b648aeb658fb0f07b5692 (diff)
add virtio-console initializer for powerpc (Christian Ehrhardt)
This adds an intialization of virtio console for powerpc. Signed-off-by: Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6319 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/ppc440_bamboo.c')
-rw-r--r--hw/ppc440_bamboo.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/hw/ppc440_bamboo.c b/hw/ppc440_bamboo.c
index bc8a47b468..cc241ead69 100644
--- a/hw/ppc440_bamboo.c
+++ b/hw/ppc440_bamboo.c
@@ -17,6 +17,7 @@
#include "hw.h"
#include "pci.h"
#include "virtio-blk.h"
+#include "virtio-console.h"
#include "boards.h"
#include "sysemu.h"
#include "ppc440.h"
@@ -115,6 +116,12 @@ static void bamboo_init(ram_addr_t ram_size, int vga_ram_size,
unit_id++;
}
+ /* Add virtio console devices */
+ for(i = 0; i < MAX_VIRTIO_CONSOLES; i++) {
+ if (virtcon_hds[i])
+ virtio_console_init(pcibus, virtcon_hds[i]);
+ }
+
/* Register network interfaces. */
for (i = 0; i < nb_nics; i++) {
/* There are no PCI NICs on the Bamboo board, but there are