Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NvJ6z-0003aR-HD for qemu-devel@nongnu.org; Fri, 26 Mar 2010 19:38:45 -0400 Received: from [140.186.70.92] (port=39992 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NvJ6y-0003Z5-30 for qemu-devel@nongnu.org; Fri, 26 Mar 2010 19:38:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NvJ6s-0008Es-90 for qemu-devel@nongnu.org; Fri, 26 Mar 2010 19:38:43 -0400 Received: from mail-pv0-f173.google.com ([74.125.83.173]:51012) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NvJ6s-0008El-3z for qemu-devel@nongnu.org; Fri, 26 Mar 2010 19:38:38 -0400 Received: by pvf33 with SMTP id 33so4727763pvf.4 for ; Fri, 26 Mar 2010 16:38:36 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20100326221653.GF15194@volta.aurel32.net> References: <473191351003250558m8bb35c7t1c89ee94bd05ee61@mail.gmail.com> <20100326221653.GF15194@volta.aurel32.net> From: Roy Tam Date: Sat, 27 Mar 2010 07:38:15 +0800 Message-ID: <473191351003261638o7291eel7f39c48885f61a65@mail.gmail.com> Subject: Re: [Qemu-devel] [PATCH][RESEND] Serial: DOS Plus regression Content-Type: text/plain; charset=ISO-8859-1 List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Aurelien Jarno Cc: qemu-devel 2010/3/27 Aurelien Jarno : > On Thu, Mar 25, 2010 at 08:58:13PM +0800, Roy Tam wrote: >> The commit in r1049 (serial interrupt fix (Hampa Hug)) prevents >> booting Digital Research DOSPlus. Following patch partially reverts >> that commit and makes DOSPlus booting in QEMU again. > > I guess that this patch has been introduced to fix an issue. Are you > sure your partial revert is correct and is not going to create a > regression? What the documentation says? In other words, I can't find other implementations (such as Bochs) checks LSR_THRE in IER. And the log message in r1049 doesn't say any regressions too. As a result I assume checking LSR_THRE in IER in r1049 is wrong implementation. Partial reverting r1049 are tested and no regression created(tested with DOS/Windows/*nix guests, if they work correctly before applying this patch). > >> Sign-off-by: Roy Tam >> >> -- >> >> diff --git a/hw/serial.c b/hw/serial.c >> index f3ec36a..2ae550e 100644 >> --- a/hw/serial.c >> +++ b/hw/serial.c >> @@ -401,10 +401,6 @@ static void serial_ioport_write(void *opaque, >> s->poll_msl = 0; >> } >> } >> - if (s->lsr & UART_LSR_THRE) { >> - s->thr_ipending = 1; >> - serial_update_irq(s); >> - } >> } >> break; >> case 2: >> >> >> > > -- > Aurelien Jarno GPG: 1024D/F1BCDB73 > aurelien@aurel32.net http://www.aurel32.net >