From patchwork Wed Apr 22 17:09:20 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Bellows X-Patchwork-Id: 47427 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f69.google.com (mail-wg0-f69.google.com [74.125.82.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 81CD02121F for ; Wed, 22 Apr 2015 17:14:25 +0000 (UTC) Received: by wgtl5 with SMTP id l5sf54475472wgt.1 for ; Wed, 22 Apr 2015 10:14:24 -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=oR7bYw64A8BdWUrDQ1eAFDqolpyllN6OcaOhJN3m5g8=; b=AeSWLynUBY2vRJeX4hgMtMYoHlDY/H4KRsNBDwpQWtFm0pGhgIlkXNmgVB+XcMM6qQ yOHM66YCYv4NSW0HZqb6i1Q1Ae+CfCIKaN5W7cNC8boc3Yc1UQrwS6fwWlgjnIBbOZBC kPiqR3RSUbpjwtHHEKsDo3WYXLzZfTBT/hYgQOosUoD2gBqj+LinuKRjWsecU1mjcysf w/0xZU9s+WjjetDyOQzpUFpIswHgmFFDe3Hc6pd8brT1wQppwaG8xLwpLArEKKS52mzM kUIp14qP63bjBTgkiNqXxrfziCFEHFRrSVTUyyiF5GFCxTlO03ZMM8dxYHA/Hvi+4fAc ZRmw== X-Gm-Message-State: ALoCoQnkLx1TEdGnycNN8EJ+M0I3gJAEHU7lZfAJnFXsLtmHjQgDkFF9ZejB+pppHQnEgeJZGFvh X-Received: by 10.152.19.67 with SMTP id c3mr12015890lae.7.1429722864865; Wed, 22 Apr 2015 10:14:24 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.178.195 with SMTP id da3ls236317lac.30.gmail; Wed, 22 Apr 2015 10:14:24 -0700 (PDT) X-Received: by 10.112.146.97 with SMTP id tb1mr25960927lbb.12.1429722864719; Wed, 22 Apr 2015 10:14:24 -0700 (PDT) Received: from mail-la0-f42.google.com (mail-la0-f42.google.com. [209.85.215.42]) by mx.google.com with ESMTPS id s7si149411lag.52.2015.04.22.10.14.24 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 22 Apr 2015 10:14:24 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.42 as permitted sender) client-ip=209.85.215.42; Received: by laat2 with SMTP id t2so180057182laa.1 for ; Wed, 22 Apr 2015 10:14:24 -0700 (PDT) X-Received: by 10.152.5.72 with SMTP id q8mr25250256laq.73.1429722864598; Wed, 22 Apr 2015 10:14:24 -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 l1csp69988lbt; Wed, 22 Apr 2015 10:14:24 -0700 (PDT) X-Received: by 10.140.202.20 with SMTP id x20mr32222050qha.101.1429722863159; Wed, 22 Apr 2015 10:14:23 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id 18si5608362qhh.89.2015.04.22.10.14.22 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 22 Apr 2015 10:14:23 -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]:36260 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YkyE9-0006m1-Vk for patch@linaro.org; Wed, 22 Apr 2015 13:14:21 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42073) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yky9n-0007SS-Nf for qemu-devel@nongnu.org; Wed, 22 Apr 2015 13:09:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yky9j-0004tI-KJ for qemu-devel@nongnu.org; Wed, 22 Apr 2015 13:09:51 -0400 Received: from mail-oi0-f50.google.com ([209.85.218.50]:33984) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yky9j-0004tC-GM for qemu-devel@nongnu.org; Wed, 22 Apr 2015 13:09:47 -0400 Received: by oiko83 with SMTP id o83so184687849oik.1 for ; Wed, 22 Apr 2015 10:09:47 -0700 (PDT) X-Received: by 10.182.56.161 with SMTP id b1mr24513671obq.22.1429722587223; Wed, 22 Apr 2015 10:09:47 -0700 (PDT) Received: from gbellows-linaro.gateway.pace.com (99-179-1-214.lightspeed.austtx.sbcglobal.net. [99.179.1.214]) by mx.google.com with ESMTPSA id w72sm3417636oie.28.2015.04.22.10.09.45 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 22 Apr 2015 10:09:46 -0700 (PDT) From: Greg Bellows To: qemu-devel@nongnu.org, peter.maydell@linaro.org, alex.bennee@linaro.org Date: Wed, 22 Apr 2015 12:09:20 -0500 Message-Id: <1429722561-12651-9-git-send-email-greg.bellows@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1429722561-12651-1-git-send-email-greg.bellows@linaro.org> References: <1429722561-12651-1-git-send-email-greg.bellows@linaro.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.218.50 Cc: serge.fdrv@gmail.com, Greg Bellows Subject: [Qemu-devel] [PATCH v2 8/9] target-arm: Add WFx syndrome function X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-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: greg.bellows@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.42 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 Adds a utility function for creating a WFx exception syndrome Signed-off-by: Greg Bellows Reviewed-by: Peter Maydell --- target-arm/internals.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/target-arm/internals.h b/target-arm/internals.h index 2cc3017..de0a9c1 100644 --- a/target-arm/internals.h +++ b/target-arm/internals.h @@ -347,6 +347,12 @@ static inline uint32_t syn_breakpoint(int same_el) | ARM_EL_IL | 0x22; } +static inline uint32_t syn_wfx(int cv, int cond, int ti) +{ + return (EC_WFX_TRAP << ARM_EL_EC_SHIFT) | + (cv << 24) | (cond << 20) | ti; +} + /* Update a QEMU watchpoint based on the information the guest has set in the * DBGWCR_EL1 and DBGWVR_EL1 registers. */