aboutsummaryrefslogtreecommitdiff
path: root/hw/ppc440_bamboo.c
diff options
context:
space:
mode:
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