From patchwork Fri Mar 27 19:10:45 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Bellows X-Patchwork-Id: 46444 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f197.google.com (mail-lb0-f197.google.com [209.85.217.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 0A8B221597 for ; Fri, 27 Mar 2015 19:17:10 +0000 (UTC) Received: by lbbzl9 with SMTP id zl9sf12629013lbb.2 for ; Fri, 27 Mar 2015 12:17:08 -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=4axDXlZFJ2UNfz72Qnt6GV7AhO4me7c05cbNdxgidJk=; b=YvwzfSgIsK9LeruPWcY/6EpeLompeuPi/JrD0df/Sz9cMDHR0iBr/6JET82B3KrpRU t3KGPQSq+URNG9V2b9DZbfeMLBufMUV7D0hb0qUzA4sBkllA4etU/s44KYomGgoSxOKy qsyAdMrNcWCccOAEZJQ3ERY74yTVUbkT0Z7YbWqqW25k3otkFRHc8HYCJAV2bnVWIFwH B5j/9xmGSLYZlN/uCnlmAJHpxNUN7dNvRA+4ngncLxyH5G5Vg9R2ev118IXoASbe033p qcCIrHeR4SBbUl2GN1LEMix8HFuZZQx8yV1btkZq2VLzm4UEfkkg3iavmNVnIwRgfLTB F0MQ== X-Gm-Message-State: ALoCoQl7Xp7DAJm904mXvCkQW2go6MvvgvQLiRuiGMhv05aB5kAPRDQIRvYeNJx2Bl52PgYl4yuF X-Received: by 10.112.130.71 with SMTP id oc7mr807171lbb.13.1427483828825; Fri, 27 Mar 2015 12:17:08 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.37.194 with SMTP id a2ls385295lak.88.gmail; Fri, 27 Mar 2015 12:17:08 -0700 (PDT) X-Received: by 10.112.44.132 with SMTP id e4mr19132538lbm.66.1427483828683; Fri, 27 Mar 2015 12:17:08 -0700 (PDT) Received: from mail-la0-f44.google.com (mail-la0-f44.google.com. [209.85.215.44]) by mx.google.com with ESMTPS id qu8si1972064lbb.49.2015.03.27.12.17.08 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 27 Mar 2015 12:17:08 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.44 as permitted sender) client-ip=209.85.215.44; Received: by labe2 with SMTP id e2so77840569lab.3 for ; Fri, 27 Mar 2015 12:17:08 -0700 (PDT) X-Received: by 10.152.197.34 with SMTP id ir2mr18942281lac.36.1427483828575; Fri, 27 Mar 2015 12:17:08 -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.57.201 with SMTP id k9csp67893lbq; Fri, 27 Mar 2015 12:17:07 -0700 (PDT) X-Received: by 10.55.48.21 with SMTP id w21mr42848117qkw.13.1427483814382; Fri, 27 Mar 2015 12:16:54 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id k1si2788545qcm.26.2015.03.27.12.16.53 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 27 Mar 2015 12:16:54 -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]:51463 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YbZkT-0000xm-Ei for patch@linaro.org; Fri, 27 Mar 2015 15:16:53 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50183) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YbZfK-0001i8-2d for qemu-devel@nongnu.org; Fri, 27 Mar 2015 15:12:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YbZey-0005Es-Qm for qemu-devel@nongnu.org; Fri, 27 Mar 2015 15:11:33 -0400 Received: from mail-ob0-f177.google.com ([209.85.214.177]:36702) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YbZey-0005EW-LV for qemu-devel@nongnu.org; Fri, 27 Mar 2015 15:11:12 -0400 Received: by obbld8 with SMTP id ld8so26680770obb.3 for ; Fri, 27 Mar 2015 12:11:12 -0700 (PDT) X-Received: by 10.60.61.40 with SMTP id m8mr17571976oer.20.1427483472455; Fri, 27 Mar 2015 12:11:12 -0700 (PDT) Received: from gbellows-linaro.bellowshome.netattlocal.net (99-179-1-128.lightspeed.austtx.sbcglobal.net. [99.179.1.128]) by mx.google.com with ESMTPSA id hc7sm1490859obb.16.2015.03.27.12.11.10 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 27 Mar 2015 12:11:11 -0700 (PDT) From: Greg Bellows To: qemu-devel@nongnu.org, peter.maydell@linaro.org, alex.bennee@linaro.org Date: Fri, 27 Mar 2015 14:10:45 -0500 Message-Id: <1427483446-31900-7-git-send-email-greg.bellows@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1427483446-31900-1-git-send-email-greg.bellows@linaro.org> References: <1427483446-31900-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.214.177 Cc: Greg Bellows Subject: [Qemu-devel] [[PATCH] 6/7] 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.44 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 bb171a7..8dc2e2b 100644 --- a/target-arm/internals.h +++ b/target-arm/internals.h @@ -344,6 +344,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. */