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: 455553 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 79419140187 for ; Sat, 28 Mar 2015 06:16:32 +1100 (AEDT) Received: from localhost ([::1]:51463 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YbZk6-0000xm-8W for incoming@patchwork.ozlabs.org; Fri, 27 Mar 2015 15:16:30 -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-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=4axDXlZFJ2UNfz72Qnt6GV7AhO4me7c05cbNdxgidJk=; b=Xt/5cE6/SxexOQ6U9kohEEwP2HV5RXx/w/OMvkD74aiaD03slGKwO0J4qqyymuN8m2 qv8B7WbRIKePQ2D3hIwLK0AJYdPf5R8UNh7mkeU9dtTeZx1RImvdbp+2fTU92tJfGv+Z Jqm1dA8jh/B313GP9W67wbW10tXbbiKWfaAlGwFUcXaJ4HAaVM8T2RRMPa+mzzZhr3Z3 QM5tr+dAub9zMAlT7JhDnAcUZXx8DVfANB22+fDRyqFkE7Yzi6pqVJUkwgJolAj9567A EqVBB7GUiHmqUMPufc2wO7XGkKrIgSwG0RCQ20mmOOTlBVwoApOmyGSKiRSIHk/djQLR fZJQ== X-Gm-Message-State: ALoCoQlpFAmytIQmzLSk1YLk+rBkjbTIwyG3xakyoYVqdWps0YJ3/ZVGWMjgLhsQh6oaDNULNGlf 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+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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. */