From 84faf7c3927ca7f3013362e38c58c02a7e733c0c Mon Sep 17 00:00:00 2001 From: Guenter Roeck Date: Sun, 8 Sep 2013 00:39:05 -0700 Subject: [PATCH] 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 --- 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 6223a557b2..9328dd1b57 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; -- GitLab