Skip to content

Commit

Permalink
sh4: Fix serial line access for Linux kernels later than 3.2
Browse files Browse the repository at this point in the history
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 <rob@landley.net>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
  • Loading branch information
groeck authored and Michael Tokarev committed Oct 2, 2013
1 parent 9b2caaf commit 84faf7c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions hw/char/sh_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 84faf7c

Please sign in to comment.