Message ID | 1395230746-22643-3-git-send-email-peter.maydell@linaro.org |
---|---|
State | Accepted |
Commit | 22709e90a270a36418f1b1d5d3277016eec1edc2 |
Headers | show
Return-Path: <patchwork-forward+bncBC6Z756YVMIBBTE2U2MQKGQE7YGQSTI@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f199.google.com (mail-pd0-f199.google.com [209.85.192.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 4D19120534 for <linaro@patches.linaro.org>; Wed, 19 Mar 2014 12:27:57 +0000 (UTC) Received: by mail-pd0-f199.google.com with SMTP id x10sf20745465pdj.10 for <linaro@patches.linaro.org>; Wed, 19 Mar 2014 05:27:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:date :message-id:in-reply-to:references:cc:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=iDEbofMrmq81s008+sxHvR7kyt+gTypV9JxJwdOslqg=; b=KCibXiVq4ma1ctzr00ljrcGt0eQKirvV/Wf/bpSLeAWoC+whUQ7hqsHuu5lVcyX6mj T9UeDPkiCK/om4tLtA2l3cmLvj1p1ac2MHSJLJng+EjEx/QUT215IcyRLJRoHt5MQpJq 05Nn2jJpuiwvn/2OblRlK67tFe6ktyo2Aq4cu4/Xkr9TeTLSSuFOi5FAbOGa5+G7eLah bLNCMTZkwVZ2oBHgr6UpYz3Iu8b3u3l9WI5eI6MpHaEFGbOJxrMd5jDJylRPCFhj/IPJ ONdKRMMXO/gPLLCD/a5prZr6JaPXOuEarJ0zuEcouOtBnDFvGecwvkwygG2yzB302R5E neHA== X-Gm-Message-State: ALoCoQmfxbUPaKQ7GgDm51JBs4s/0YnED+vAO3McueJPIz6peaZDZ4f9BNj3CjH06PifVhzfJ1I9 X-Received: by 10.66.219.69 with SMTP id pm5mr3724995pac.8.1395232076368; Wed, 19 Mar 2014 05:27:56 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.82.148 with SMTP id h20ls2370282qgd.36.gmail; Wed, 19 Mar 2014 05:27:56 -0700 (PDT) X-Received: by 10.220.88.204 with SMTP id b12mr29735614vcm.3.1395232076207; Wed, 19 Mar 2014 05:27:56 -0700 (PDT) Received: from mail-vc0-f177.google.com (mail-vc0-f177.google.com [209.85.220.177]) by mx.google.com with ESMTPS id h13si7632348vct.68.2014.03.19.05.27.56 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 19 Mar 2014 05:27:56 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.177 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.177; Received: by mail-vc0-f177.google.com with SMTP id if17so8900436vcb.36 for <patchwork-forward@linaro.org>; Wed, 19 Mar 2014 05:27:56 -0700 (PDT) X-Received: by 10.52.3.129 with SMTP id c1mr483533vdc.37.1395232076098; Wed, 19 Mar 2014 05:27:56 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.78.9 with SMTP id i9csp294734vck; Wed, 19 Mar 2014 05:27:55 -0700 (PDT) X-Received: by 10.224.80.201 with SMTP id u9mr42193069qak.5.1395232074988; Wed, 19 Mar 2014 05:27:54 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id q1si12687327qab.31.2014.03.19.05.27.54 for <patch@linaro.org> (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 19 Mar 2014 05:27:54 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Received: from localhost ([::1]:40785 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1WQFb8-0003hI-FW for patch@linaro.org; Wed, 19 Mar 2014 08:27:54 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55733) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <pm215@archaic.org.uk>) id 1WQFaH-0002mn-Qo for qemu-devel@nongnu.org; Wed, 19 Mar 2014 08:27:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <pm215@archaic.org.uk>) id 1WQFaC-0004j3-Bm for qemu-devel@nongnu.org; Wed, 19 Mar 2014 08:27:01 -0400 Received: from mnementh.archaic.org.uk ([2001:8b0:1d0::1]:47074) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <pm215@archaic.org.uk>) id 1WQFaC-0004ie-5n for qemu-devel@nongnu.org; Wed, 19 Mar 2014 08:26:56 -0400 Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.80) (envelope-from <pm215@archaic.org.uk>) id 1WQFFj-0005to-32; Wed, 19 Mar 2014 12:05:47 +0000 From: Peter Maydell <peter.maydell@linaro.org> To: Anthony Liguori <aliguori@amazon.com> Date: Wed, 19 Mar 2014 12:05:42 +0000 Message-Id: <1395230746-22643-3-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1395230746-22643-1-git-send-email-peter.maydell@linaro.org> References: <1395230746-22643-1-git-send-email-peter.maydell@linaro.org> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:8b0:1d0::1 Cc: Blue Swirl <blauwirbel@gmail.com>, =?UTF-8?q?Andreas=20F=C3=A4rber?= <andreas.faerber@web.de>, qemu-devel@nongnu.org, Aurelien Jarno <aurelien@aurel32.net> Subject: [Qemu-devel] [PULL 2/6] pl011: reset the fifo when enabled or disabled X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: <patchwork-forward.linaro.org> List-Unsubscribe: <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe>, <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: peter.maydell@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.177 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 |
diff --git a/hw/char/pl011.c b/hw/char/pl011.c index a8ae6f4..8103e2e 100644 --- a/hw/char/pl011.c +++ b/hw/char/pl011.c @@ -162,6 +162,11 @@ static void pl011_write(void *opaque, hwaddr offset, s->fbrd = value; break; case 11: /* UARTLCR_H */ + /* Reset the FIFO state on FIFO enable or disable */ + if ((s->lcr ^ value) & 0x10) { + s->read_count = 0; + s->read_pos = 0; + } s->lcr = value; pl011_set_read_trigger(s); break;