[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] sh4: Fix serial line access for Linux kernels later

From: Guenter Roeck
Subject: [Qemu-devel] [PATCH] sh4: Fix serial line access for Linux kernels later than 3.2
Date: Sun, 8 Sep 2013 00:39:05 -0700

With Linux kernel version 3.3 or later, qemu fails with the following message:

sh_serial: unsupported read from 0x18

Reported-and-analyzed-by: Rob Landley <address@hidden>
Signed-off-by: Guenter Roeck <address@hidden>
See http://lists.nongnu.org/archive/html/qemu-devel/2012-07/msg03870.html
for Rob's analysis of the problem. Unfortunately, the patch never made it
into qemu.

 hw/char/sh_serial.c |    2 --
 1 file changed, 2 deletions(-)

diff --git a/hw/char/sh_serial.c b/hw/char/sh_serial.c
index 6223a55..9328dd1 100644
--- a/hw/char/sh_serial.c
+++ b/hw/char/sh_serial.c
@@ -248,11 +248,9 @@ static uint64_t sh_serial_read(void *opaque, hwaddr offs,
                     s->flags &= ~SH_SERIAL_FLAG_RDF;
-#if 0
         case 0x18:
             ret = s->fcr;
         case 0x1c:
             ret = s->rx_cnt;

reply via email to

[Prev in Thread] Current Thread [Next in Thread]