Message ID | 1430704362-6292-9-git-send-email-shannon.zhao@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBCOL5N4BVYCBBP5CTOVAKGQERCAYGSY@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f71.google.com (mail-la0-f71.google.com [209.85.215.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id CCBF52121F for <linaro@patches.linaro.org>; Mon, 4 May 2015 01:54:08 +0000 (UTC) Received: by layy10 with SMTP id y10sf42205762lay.0 for <linaro@patches.linaro.org>; Sun, 03 May 2015 18:54:07 -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:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=jxZejDjIcdIXp8WKUQm1surQ7KHL9Ib6rZSSwmCgT30=; b=Eb375XNNPJB5cuSkWchf9NTtxILfcJzbt5xmktNjOy5esQDq9+GcwhQLSeKwDlBYKm ADabBK3TKutRIDtI6SK4ZmUYNBbVAs3kKHJyNCYdH723Me58WyKgbIfKHSXxDibQhBiY G7cMXoHbv2so+WasRAwbT+3JX2nAbQ2TUXQpdHL2ngcqI9DgHGV1cIQCMwq0F5UC371Y nDuOwBmiC2ebQQK/goM79TrBaeVaLDBA+kwuMP8tgFspgZvkWs881ELEZk/wi0x+l4DI T2F2vTsVWWyuqc0j6CbkkO5Qb9kOTdar9PlQ1iEQ4yNqh+l+rTLI+VOUb14d7wvYckH+ pnqQ== X-Gm-Message-State: ALoCoQnlmpOK9F53qiq9x20No7oQ7JIDRToQvBi3/JqCg27oiTqAQsPtj8yxkoDwg35l5sa/ykLD X-Received: by 10.194.240.164 with SMTP id wb4mr16935186wjc.1.1430704447765; Sun, 03 May 2015 18:54:07 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.44.195 with SMTP id g3ls730801lam.0.gmail; Sun, 03 May 2015 18:54:07 -0700 (PDT) X-Received: by 10.112.17.8 with SMTP id k8mr17618440lbd.28.1430704447481; Sun, 03 May 2015 18:54:07 -0700 (PDT) Received: from mail-la0-f52.google.com (mail-la0-f52.google.com. [209.85.215.52]) by mx.google.com with ESMTPS id kd4si9097122lbc.42.2015.05.03.18.54.07 for <patchwork-forward@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 03 May 2015 18:54:07 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.52 as permitted sender) client-ip=209.85.215.52; Received: by lagv1 with SMTP id v1so94952973lag.3 for <patchwork-forward@linaro.org>; Sun, 03 May 2015 18:54:07 -0700 (PDT) X-Received: by 10.152.29.161 with SMTP id l1mr17254311lah.76.1430704447337; Sun, 03 May 2015 18:54:07 -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.112.67.65 with SMTP id l1csp1412590lbt; Sun, 3 May 2015 18:54:06 -0700 (PDT) X-Received: by 10.66.63.106 with SMTP id f10mr38177728pas.0.1430704445499; Sun, 03 May 2015 18:54:05 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ix6si17838787pac.46.2015.05.03.18.54.04; Sun, 03 May 2015 18:54:05 -0700 (PDT) Received-SPF: none (google.com: stable-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751714AbbEDByE (ORCPT <rfc822;shannon.zhao@linaro.org> + 2 others); Sun, 3 May 2015 21:54:04 -0400 Received: from mail-pd0-f179.google.com ([209.85.192.179]:34067 "EHLO mail-pd0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751755AbbEDByD (ORCPT <rfc822;stable@vger.kernel.org>); Sun, 3 May 2015 21:54:03 -0400 Received: by pdbqa5 with SMTP id qa5so149934904pdb.1 for <stable@vger.kernel.org>; Sun, 03 May 2015 18:54:02 -0700 (PDT) X-Received: by 10.68.94.225 with SMTP id df1mr23469624pbb.89.1430704442917; Sun, 03 May 2015 18:54:02 -0700 (PDT) Received: from localhost ([180.150.153.1]) by mx.google.com with ESMTPSA id pw9sm11059340pac.27.2015.05.03.18.54.01 (version=TLSv1 cipher=RC4-SHA bits=128/128); Sun, 03 May 2015 18:54:02 -0700 (PDT) From: shannon.zhao@linaro.org To: stable@vger.kernel.org Cc: gregkh@linuxfoundation.org, christoffer.dall@linaro.org, shannon.zhao@linaro.org, Marc Zyngier <marc.zyngier@arm.com> Subject: [PATCH for 3.14.y stable 08/47] ARM: KVM: fix ordering of 64bit coprocessor accesses Date: Mon, 4 May 2015 09:52:03 +0800 Message-Id: <1430704362-6292-9-git-send-email-shannon.zhao@linaro.org> X-Mailer: git-send-email 1.9.5.msysgit.1 In-Reply-To: <1430704362-6292-1-git-send-email-shannon.zhao@linaro.org> References: <1430704362-6292-1-git-send-email-shannon.zhao@linaro.org> Sender: stable-owner@vger.kernel.org Precedence: list List-ID: <patchwork-forward.linaro.org> X-Mailing-List: stable@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: shannon.zhao@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.52 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 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-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> |
diff --git a/arch/arm/kvm/coproc.h b/arch/arm/kvm/coproc.h index c5ad7ff..8dda870 100644 --- a/arch/arm/kvm/coproc.h +++ b/arch/arm/kvm/coproc.h @@ -135,13 +135,13 @@ static inline int cmp_reg(const struct coproc_reg *i1, return -1; if (i1->CRn != i2->CRn) return i1->CRn - i2->CRn; - if (i1->is_64 != i2->is_64) - return i2->is_64 - i1->is_64; if (i1->CRm != i2->CRm) return i1->CRm - i2->CRm; if (i1->Op1 != i2->Op1) return i1->Op1 - i2->Op1; - return i1->Op2 - i2->Op2; + if (i1->Op2 != i2->Op2) + return i1->Op2 - i2->Op2; + return i2->is_64 - i1->is_64; }