Message ID | 1400662237-23743-3-git-send-email-kraxel@redhat.com |
---|---|
State | Accepted |
Commit | b1fe60cd3525871a4c593ad8c2b39b89c19c00d0 |
Headers | show
Return-Path: <patchwork-forward+bncBCEMRBPB5UORBVWV6GNQKGQEOFU7P2Q@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f198.google.com (mail-ve0-f198.google.com [209.85.128.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2F98020671 for <linaro@patches.linaro.org>; Wed, 21 May 2014 08:59:03 +0000 (UTC) Received: by mail-ve0-f198.google.com with SMTP id sa20sf5820502veb.9 for <linaro@patches.linaro.org>; Wed, 21 May 2014 01:59:02 -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=R1byRf5roIyeSoVhGza/vakQ89TbW9JKI5sg1poKUXM=; b=g31lXWUK04Mx1iHHMtQy7SxQG7ayY8NYTykyMtrqotMSIStxc9n6SjRKnnF1DSWloW m9MV8ahhH7A6Dm968aJQifuPX2YnhSC+5QRUvq6STGpNTFaYV57erOqFz4yjvz7wYKfp feIPcZSjzaxf4m+m7FlqGSMwD8OC+OItnyaDOVsBEabqmbWsuR6/jmj+ncgAqqpE5ux2 zK2gi9gAGXULNQAyWfiqXdOwg3S6teI3wDW/MIieMoCTsTD4KoPJ1j+oghSvJp6ajI5o XfeDjlrVR+ZaFLVZlUIfVdtAo16xG+0ronQ+fEDqRLe0Bc2cbGUNmkSaBGSgKSvQeynm gSTA== X-Gm-Message-State: ALoCoQnuxwGn0aw6cTLq2m4xjWL8XHBolg9Q5FbmnBPRpVJnehWulrWoJ797bVciWkcaTa7hF8wT X-Received: by 10.236.101.148 with SMTP id b20mr4986076yhg.46.1400662742856; Wed, 21 May 2014 01:59:02 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.83.240 with SMTP id j103ls640592qgd.47.gmail; Wed, 21 May 2014 01:59:02 -0700 (PDT) X-Received: by 10.220.159.4 with SMTP id h4mr2037125vcx.1.1400662742754; Wed, 21 May 2014 01:59:02 -0700 (PDT) Received: from mail-vc0-f172.google.com (mail-vc0-f172.google.com [209.85.220.172]) by mx.google.com with ESMTPS id s7si2548348vcl.50.2014.05.21.01.59.02 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 21 May 2014 01:59:02 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.172 as permitted sender) client-ip=209.85.220.172; Received: by mail-vc0-f172.google.com with SMTP id hr9so2143649vcb.3 for <patchwork-forward@linaro.org>; Wed, 21 May 2014 01:59:02 -0700 (PDT) X-Received: by 10.52.11.230 with SMTP id t6mr7289353vdb.27.1400662742668; Wed, 21 May 2014 01:59:02 -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.221.72 with SMTP id ib8csp95641vcb; Wed, 21 May 2014 01:59:01 -0700 (PDT) X-Received: by 10.224.103.66 with SMTP id j2mr65632891qao.15.1400662741496; Wed, 21 May 2014 01:59:01 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [208.118.235.17]) by mx.google.com with ESMTPS id p15si614931qaa.115.2014.05.21.01.59.01 for <patch@linaro.org> (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 21 May 2014 01:59:01 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; Received: from localhost ([::1]:58020 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1Wn2MX-0005Sj-Ah for patch@linaro.org; Wed, 21 May 2014 04:59:01 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50117) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <kraxel@redhat.com>) id 1Wn2Ey-0001HT-RR for qemu-devel@nongnu.org; Wed, 21 May 2014 04:51:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <kraxel@redhat.com>) id 1Wn2Eu-0002BV-2A for qemu-devel@nongnu.org; Wed, 21 May 2014 04:51:12 -0400 Received: from mx1.redhat.com ([209.132.183.28]:3057) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <kraxel@redhat.com>) id 1Wn2Et-0002BO-QO for qemu-devel@nongnu.org; Wed, 21 May 2014 04:51:07 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s4L8of4n001096 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 21 May 2014 04:50:42 -0400 Received: from nilsson.home.kraxel.org (ovpn-116-26.ams2.redhat.com [10.36.116.26]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id s4L8oecG017533; Wed, 21 May 2014 04:50:41 -0400 Received: by nilsson.home.kraxel.org (Postfix, from userid 500) id E9ADA80444; Wed, 21 May 2014 10:50:39 +0200 (CEST) From: Gerd Hoffmann <kraxel@redhat.com> To: qemu-devel@nongnu.org Date: Wed, 21 May 2014 10:50:37 +0200 Message-Id: <1400662237-23743-3-git-send-email-kraxel@redhat.com> In-Reply-To: <1400662237-23743-1-git-send-email-kraxel@redhat.com> References: <1400662237-23743-1-git-send-email-kraxel@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 Cc: Peter Maydell <peter.maydell@linaro.org>, "Vassili Karpov \(malc\)" <av1474@comtv.ru>, Gerd Hoffmann <kraxel@redhat.com> Subject: [Qemu-devel] [PULL 2/2] hw/audio/intel-hda: Avoid shift into sign bit 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: kraxel@redhat.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.172 as permitted sender) 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/audio/intel-hda.c b/hw/audio/intel-hda.c index 9e075c0..3cfb66c 100644 --- a/hw/audio/intel-hda.c +++ b/hw/audio/intel-hda.c @@ -245,7 +245,7 @@ static void intel_hda_update_int_sts(IntelHDAState *d) /* update global status */ if (sts & d->int_ctl) { - sts |= (1 << 31); + sts |= (1U << 31); } d->int_sts = sts; @@ -257,7 +257,7 @@ static void intel_hda_update_irq(IntelHDAState *d) int level; intel_hda_update_int_sts(d); - if (d->int_sts & (1 << 31) && d->int_ctl & (1 << 31)) { + if (d->int_sts & (1U << 31) && d->int_ctl & (1U << 31)) { level = 1; } else { level = 0;