From: Guenter Roeck Date: Sun, 8 Sep 2013 07:39:05 +0000 (-0700) Subject: sh4: Fix serial line access for Linux kernels later than 3.2 X-Git-Tag: TizenStudio_2.0_p2.3.2~208^2~1306^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=84faf7c3927ca7f3013362e38c58c02a7e733c0c;p=sdk%2Femulator%2Fqemu.git sh4: Fix serial line access for Linux kernels later than 3.2 With Linux kernel version 3.3 or later, qemu fails with the following message: sh_serial: unsupported read from 0x18 Aborted Reported-and-analyzed-by: Rob Landley Signed-off-by: Guenter Roeck Reviewed-by: Peter Maydell Signed-off-by: Michael Tokarev --- 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; } break; -#if 0 case 0x18: ret = s->fcr; break; -#endif case 0x1c: ret = s->rx_cnt; break;