# HG changeset patch # User Rob Landley # Date 1343397415 18000 # Node ID 3b7e8d600c19b54007b300066037e4780ea63ca7 # Parent 2b3c892dc25ef26db5c2413b3108a7778e24fb99 Workaround for sh4 bug. diff -r 2b3c892dc25e -r 3b7e8d600c19 sources/patches/linux-fixsh4-2.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sources/patches/linux-fixsh4-2.patch Fri Jul 27 08:56:55 2012 -0500 @@ -0,0 +1,18 @@ +This is "the wrong fix". The correct fix is to qemu (take out the "#ifdef 0" +around the 0x18 case in hw/sh_serial.c line 250 or so, or just don't +abort() on unknown register reads), and I pinged the qemu +mailing list about that, but this works with existing qemu releases. + +diff --git a/drivers/tty/serial/sh-sci.c b/drivers/tty/serial/sh-sci.c +index 1bd9163..fa043f1 100644 +--- a/drivers/tty/serial/sh-sci.c ++++ b/drivers/tty/serial/sh-sci.c +@@ -1879,7 +1879,7 @@ static void sci_set_termios(struct uart_port *port, struct ktermios *termios, + + sci_init_pins(port, termios->c_cflag); + +- reg = sci_getreg(port, SCFCR); ++ reg = sci_getreg(port, 0x30); + if (reg->size) { + unsigned short ctrl = serial_port_in(port, SCFCR); +