From patchwork Mon May 18 19:15:18 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 48709 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f197.google.com (mail-wi0-f197.google.com [209.85.212.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 4FF0A21411 for ; Mon, 18 May 2015 19:20:41 +0000 (UTC) Received: by wivs14 with SMTP id s14sf26867239wiv.1 for ; Mon, 18 May 2015 12:20:40 -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: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=/OCveUXCP8ByiJdJ47wJxHG7cPRUH3Hj77k6Aj7i5Zg=; b=l8DJJHlye5Nen7cDY2LJAfmr6l9JBi5V+J31JCuwECXve3YHQ6JTds8voIHq3jAJp4 0xy9zuvEbQKD7XQBh9sTqnGCHDq/vLkRxGbxNsZs1pw7OIloVzAJhDG9FnSci1y9agYr MvG64u4hYDOvr3ZCruMt4gPrz8qU8VtbN0TWoUvr3ChJQ6ilYbsC4pZlAnKikrLv78Bc f3qiJwhgp6Vvou25KaOH6n4uL3toHZK6gNn377oKiGUVnGNPtBrZbXsavUiR0/TqK24L utM7I87QNhOaGmF+l8nU7/DxkHAhFwmvws/2jRbATMkD+j5MQDFAGkS6DvpAHPPau/bd IsAA== X-Gm-Message-State: ALoCoQm2tKptdvRQOxCAxZk3PPR0Ixo8mljmzVNW1phbbLDww0xoXuHA//SS0RiJnM8IAfTTi2lT X-Received: by 10.112.122.39 with SMTP id lp7mr18880956lbb.5.1431976840587; Mon, 18 May 2015 12:20:40 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.179.12 with SMTP id dc12ls394294lac.17.gmail; Mon, 18 May 2015 12:20:40 -0700 (PDT) X-Received: by 10.112.205.69 with SMTP id le5mr18607326lbc.65.1431976840438; Mon, 18 May 2015 12:20:40 -0700 (PDT) Received: from mail-la0-f43.google.com (mail-la0-f43.google.com. [209.85.215.43]) by mx.google.com with ESMTPS id n7si7284000lbs.61.2015.05.18.12.20.40 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 May 2015 12:20:40 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.43 as permitted sender) client-ip=209.85.215.43; Received: by lagr1 with SMTP id r1so152839967lag.0 for ; Mon, 18 May 2015 12:20:40 -0700 (PDT) X-Received: by 10.153.6.36 with SMTP id cr4mr18943265lad.56.1431976840289; Mon, 18 May 2015 12:20:40 -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.108.230 with SMTP id hn6csp282468lbb; Mon, 18 May 2015 12:20:39 -0700 (PDT) X-Received: by 10.55.24.215 with SMTP id 84mr51120385qky.8.1431976837782; Mon, 18 May 2015 12:20:37 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id h30si11263946qgh.17.2015.05.18.12.20.36 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 18 May 2015 12:20:37 -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]:42672 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YuQaa-0001Rm-DG for patch@linaro.org; Mon, 18 May 2015 15:20:36 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42360) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YuQVg-0001Y0-0Q for qemu-devel@nongnu.org; Mon, 18 May 2015 15:15:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YuQVf-000054-5u for qemu-devel@nongnu.org; Mon, 18 May 2015 15:15:31 -0400 Received: from mnementh.archaic.org.uk ([2001:8b0:1d0::1]:34173) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YuQVe-0008QT-7m for qemu-devel@nongnu.org; Mon, 18 May 2015 15:15:30 -0400 Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.80) (envelope-from ) id 1YuQVW-0007vS-4q for qemu-devel@nongnu.org; Mon, 18 May 2015 20:15:22 +0100 From: Peter Maydell To: qemu-devel@nongnu.org Date: Mon, 18 May 2015 20:15:18 +0100 Message-Id: <1431976521-30352-19-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1431976521-30352-1-git-send-email-peter.maydell@linaro.org> References: <1431976521-30352-1-git-send-email-peter.maydell@linaro.org> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:8b0:1d0::1 Subject: [Qemu-devel] [PULL 18/21] 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: peter.maydell@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.43 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 From: Greg Bellows Adds a utility function for creating a WFx exception syndrome Signed-off-by: Greg Bellows Reviewed-by: Peter Maydell Acked-by: Edgar E. Iglesias Message-id: 1429722561-12651-9-git-send-email-greg.bellows@linaro.org Signed-off-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. */