Message ID | 1370267237-25772-2-git-send-email-peter.maydell@linaro.org |
---|---|
State | Accepted |
Commit | 34affeefbbdbd97471c283677179254a2e006994 |
Headers | show
Return-Path: <patchwork-forward+bncBC6Z756YVMIBB5V4WKGQKGQELV6VXKI@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qe0-f71.google.com (mail-qe0-f71.google.com [209.85.128.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 36630238F2 for <linaro@patches.linaro.org>; Mon, 3 Jun 2013 13:47:34 +0000 (UTC) Received: by mail-qe0-f71.google.com with SMTP id a11sf5767643qen.10 for <linaro@patches.linaro.org>; Mon, 03 Jun 2013 06:47:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-beenthere:x-forwarded-to:x-forwarded-for :delivered-to:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe; bh=axz9zS1TWPWfUEm7tqyerwu1bkm1NuU+eWAGUL62zzI=; b=gGJ1dN6BvXWlc68yIC6vZLIKmr3JmCFF7wCbZeXYisJlSOiAobAsyQ97ijuJEcK82Y R0HDe3Un/mEOjFXlGpcllKWH56g+pVxJN4MBkcLAQqfgrMk2xdxzgcROUt0nVVkw2EAd Ayz5Q3p/xIKh94xIJpmkhNzHGhA83K+XRLh9jyqVnXv2HaIpkyhoVUayrV2TGc0QpEOc UTOmIackfb4uwhJp1RNZwZFMResY0UIVJnICSJyosiJ+v2QUu9MwGin12d21BJQco4N+ lhg7f3t84GNyxLPv6BFXy0zV8ngJY/CbNsnRKabxm2vHLrY7jzKVpy9rBkC3Q0Exkd3c 3JPw== X-Received: by 10.236.112.33 with SMTP id x21mr322356yhg.57.1370267254048; Mon, 03 Jun 2013 06:47:34 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.27.231 with SMTP id w7ls2168396qeg.41.gmail; Mon, 03 Jun 2013 06:47:33 -0700 (PDT) X-Received: by 10.220.7.134 with SMTP id d6mr16781029vcd.56.1370267253916; Mon, 03 Jun 2013 06:47:33 -0700 (PDT) Received: from mail-vb0-x22c.google.com (mail-vb0-x22c.google.com [2607:f8b0:400c:c02::22c]) by mx.google.com with ESMTPS id ad7si35369773vdc.107.2013.06.03.06.47.33 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 03 Jun 2013 06:47:33 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c02::22c is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=2607:f8b0:400c:c02::22c; Received: by mail-vb0-f44.google.com with SMTP id i3so2592493vbh.17 for <patchwork-forward@linaro.org>; Mon, 03 Jun 2013 06:47:33 -0700 (PDT) X-Received: by 10.58.29.42 with SMTP id g10mr16719654veh.59.1370267253826; Mon, 03 Jun 2013 06:47:33 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.221.10.206 with SMTP id pb14csp79344vcb; Mon, 3 Jun 2013 06:47:33 -0700 (PDT) X-Received: by 10.205.18.199 with SMTP id qh7mr6685040bkb.34.1370267247810; Mon, 03 Jun 2013 06:47:27 -0700 (PDT) Received: from mnementh.archaic.org.uk (1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.d.1.0.0.b.8.0.1.0.0.2.ip6.arpa. [2001:8b0:1d0::1]) by mx.google.com with ESMTPS id ts9si21523937bkb.24.2013.06.03.06.47.25 for <multiple recipients> (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 03 Jun 2013 06:47:27 -0700 (PDT) Received-SPF: neutral (google.com: 2001:8b0:1d0::1 is neither permitted nor denied by best guess record for domain of pm215@archaic.org.uk) client-ip=2001:8b0:1d0::1; Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.72) (envelope-from <pm215@archaic.org.uk>) id 1UjV6T-0006i9-TE; Mon, 03 Jun 2013 14:47:17 +0100 From: Peter Maydell <peter.maydell@linaro.org> To: qemu-devel@nongnu.org Cc: patches@linaro.org, Juan Quintela <quintela@redhat.com>, Andre Przywara <andre.przywara@linaro.org>, kvmarm@lists.cs.columbia.edu, Christoffer Dall <christoffer.dall@linaro.org>, kvm@vger.kernel.org Subject: [PATCH v2 1/7] target-arm: Allow special cpregs to have flags set Date: Mon, 3 Jun 2013 14:47:11 +0100 Message-Id: <1370267237-25772-2-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1370267237-25772-1-git-send-email-peter.maydell@linaro.org> References: <1370267237-25772-1-git-send-email-peter.maydell@linaro.org> X-Gm-Message-State: ALoCoQludOLx3sFStWS8+Vh6Zxlb3SajV160dd4P8s2MTWldOj32Alz+7oMyhcoVet2BPvOzFh8I X-Original-Sender: peter.maydell@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c02::22c 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 Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: <patchwork-forward.linaro.org> X-Google-Group-Id: 836684582541 List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post?hl=en-US>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?hl=en-US&topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/?hl=en-US> List-Unsubscribe: <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe?hl=en-US>, <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com> |
diff --git a/target-arm/cpu.h b/target-arm/cpu.h index 5438444..737c00c 100644 --- a/target-arm/cpu.h +++ b/target-arm/cpu.h @@ -456,7 +456,7 @@ static inline bool cptype_valid(int cptype) { return ((cptype & ~ARM_CP_FLAG_MASK) == 0) || ((cptype & ARM_CP_SPECIAL) && - (cptype <= ARM_LAST_SPECIAL)); + ((cptype & ~ARM_CP_FLAG_MASK) <= ARM_LAST_SPECIAL)); } /* Access rights:
Relax the "is this a valid ARMCPRegInfo type value?" check to permit "special" cpregs to have flags other than ARM_CP_SPECIAL set. At the moment none of the other flags are relevant for special regs, but the migration related flag we're about to introduce can apply here too. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> --- target-arm/cpu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)