Message ID | 1395934108-1694-20-git-send-email-mjt@msgid.tls.msk.ru |
---|---|
State | Accepted |
Commit | 7d45e784015971e70239e33256fd606638107a3e |
Headers | show
Return-Path: <patchwork-forward+bncBDM4H6PZD4IIDLWRTECRUBER2KSZI@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f197.google.com (mail-ie0-f197.google.com [209.85.223.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 4BFFE202FA for <linaro@patches.linaro.org>; Thu, 27 Mar 2014 16:51:14 +0000 (UTC) Received: by mail-ie0-f197.google.com with SMTP id rd18sf13457565iec.8 for <linaro@patches.linaro.org>; Thu, 27 Mar 2014 09:51:13 -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=cgDVqAdfQcrKvy+lSvhz5oHGsCRRmBUfzCMH6xSH3Yk=; b=X4upIEQ/iM2gce6mnWf744y7J9BctM+liNgcY7iTmbRPgSeOqs2gECx5JIDwtBZlOV UajkWx7zkZSEL4GhqE1TRdof5LzxJfDIwusgHr0DHxjYOjmgdgFhvfiT+wt3YjMCNZZZ uhT4XfOz6aBrBk/KvUHHBm1Le1GGQ4v+2iR2mROuTqQwPPOfTuTQsFZs0M2J5+SNyc2+ bEMBTcMT6yD5VdbxwvepczXq29OPquA4WC5PBvEzLuEFhj2O6MfoUMpCyNgQpq2tpvz0 +/2x55cy51CElN1kbH7LIyaB8nZzFTDvBOlhFG9sbWzuvUgRduLq/UhYCzaDKL5+Ttbf gp7g== X-Gm-Message-State: ALoCoQlX5ZAp9pePAN15dwh0wDX4I/ocCIvm+idyOQflNA8MsXXuxk3QSAEzd0sAQCcYc57o0+Vc X-Received: by 10.182.251.230 with SMTP id zn6mr1119295obc.14.1395939073715; Thu, 27 Mar 2014 09:51:13 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.16.165 with SMTP id 34ls1285797qgb.30.gmail; Thu, 27 Mar 2014 09:51:13 -0700 (PDT) X-Received: by 10.52.166.103 with SMTP id zf7mr1935917vdb.30.1395939073539; Thu, 27 Mar 2014 09:51:13 -0700 (PDT) Received: from mail-ve0-f180.google.com (mail-ve0-f180.google.com [209.85.128.180]) by mx.google.com with ESMTPS id iz10si682748vec.114.2014.03.27.09.51.13 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 27 Mar 2014 09:51:13 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.180 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.180; Received: by mail-ve0-f180.google.com with SMTP id jz11so4335545veb.39 for <patchwork-forward@linaro.org>; Thu, 27 Mar 2014 09:51:13 -0700 (PDT) X-Received: by 10.52.34.4 with SMTP id v4mr178723vdi.42.1395939073479; Thu, 27 Mar 2014 09:51:13 -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 i9csp43517vck; Thu, 27 Mar 2014 09:51:13 -0700 (PDT) X-Received: by 10.140.37.194 with SMTP id r60mr3256838qgr.61.1395939072479; Thu, 27 Mar 2014 09:51:12 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id k1si1300955qaf.120.2014.03.27.09.51.12 for <patch@linaro.org> (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 27 Mar 2014 09:51:12 -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]:54957 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1WTDWK-0003tp-3q for patch@linaro.org; Thu, 27 Mar 2014 12:51:12 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54983) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <mjt@tls.msk.ru>) id 1WTDTS-0007dP-Ij for qemu-devel@nongnu.org; Thu, 27 Mar 2014 12:48:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <mjt@tls.msk.ru>) id 1WTDTH-0006U3-Q2 for qemu-devel@nongnu.org; Thu, 27 Mar 2014 12:48:14 -0400 Received: from isrv.corpit.ru ([86.62.121.231]:57444) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <mjt@tls.msk.ru>) id 1WTDTH-0006TP-Hy; Thu, 27 Mar 2014 12:48:03 -0400 Received: from tsrv.corpit.ru (tsrv.tls.msk.ru [192.168.177.2]) by isrv.corpit.ru (Postfix) with ESMTP id 377FC4373D; Thu, 27 Mar 2014 20:48:02 +0400 (MSK) Received: from tls.msk.ru (mjt.vpn.tls.msk.ru [192.168.177.99]) by tsrv.corpit.ru (Postfix) with SMTP id 26D3B691; Thu, 27 Mar 2014 19:28:36 +0400 (MSK) Received: (nullmailer pid 1812 invoked by uid 1000); Thu, 27 Mar 2014 15:28:30 -0000 From: Michael Tokarev <mjt@tls.msk.ru> To: qemu-devel@nongnu.org Date: Thu, 27 Mar 2014 19:28:24 +0400 Message-Id: <1395934108-1694-20-git-send-email-mjt@msgid.tls.msk.ru> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1395934108-1694-1-git-send-email-mjt@msgid.tls.msk.ru> References: <1395934108-1694-1-git-send-email-mjt@msgid.tls.msk.ru> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 86.62.121.231 Cc: qemu-trivial@nongnu.org, Peter Maydell <peter.maydell@linaro.org>, Michael Tokarev <mjt@tls.msk.ru> Subject: [Qemu-devel] [PULL 19/23] hw/intc/slavio_intctl: Avoid shifting left 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: mjt@tls.msk.ru X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.180 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/intc/slavio_intctl.c b/hw/intc/slavio_intctl.c index 41a1672..b10fb66 100644 --- a/hw/intc/slavio_intctl.c +++ b/hw/intc/slavio_intctl.c @@ -272,7 +272,7 @@ static void slavio_check_interrupts(SLAVIO_INTCTLState *s, int set_irqs) CPU_IRQ_TIMER_IN; if (i == s->target_cpu) { for (j = 0; j < 32; j++) { - if ((s->intregm_pending & (1 << j)) && intbit_to_level[j]) { + if ((s->intregm_pending & (1U << j)) && intbit_to_level[j]) { s->slaves[i].intreg_pending |= 1 << intbit_to_level[j]; } }