aboutsummaryrefslogtreecommitdiff
path: root/hw/mips_malta.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/mips_malta.c')
-rw-r--r--hw/mips_malta.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/hw/mips_malta.c b/hw/mips_malta.c
index 25e32bf73f..0a6eaa479a 100644
--- a/hw/mips_malta.c
+++ b/hw/mips_malta.c
@@ -781,6 +781,15 @@ void mips_malta_init (ram_addr_t ram_size,
int fl_idx = 0;
int fl_sectors = 0;
+ /* Make sure the first 3 serial ports are associated with a device. */
+ for(i = 0; i < 3; i++) {
+ if (!serial_hds[i]) {
+ char label[32];
+ snprintf(label, sizeof(label), "serial%d", i);
+ serial_hds[i] = qemu_chr_open(label, "null", NULL);
+ }
+ }
+
/* init CPUs */
if (cpu_model == NULL) {
#ifdef TARGET_MIPS64