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
diff --git a/hw/ppc440_bamboo.c b/hw/ppc440_bamboo.c
index bc8a47b..cc241ea 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 @@
             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