[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-commits] [COMMIT ffabf03] mips malta: ensure that the serial ports
From: |
Anthony Liguori |
Subject: |
[Qemu-commits] [COMMIT ffabf03] mips malta: ensure that the serial ports areassociated with a device |
Date: |
Mon, 14 Sep 2009 23:24:44 -0000 |
From: Aurelien Jarno <address@hidden>
The serial ports should be present even if associated with a null device
as some firmware wants to initialize them.
Signed-off-by: Aurelien Jarno <address@hidden>
diff --git a/hw/mips_malta.c b/hw/mips_malta.c
index 25e32bf..0a6eaa4 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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-commits] [COMMIT ffabf03] mips malta: ensure that the serial ports areassociated with a device,
Anthony Liguori <=