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: 463731 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 DE85F14010F for ; Thu, 23 Apr 2015 03:14:09 +1000 (AEST) Received: from localhost ([::1]:36260 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YkyDv-0006m1-HN for incoming@patchwork.ozlabs.org; Wed, 22 Apr 2015 13:14:07 -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-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=oR7bYw64A8BdWUrDQ1eAFDqolpyllN6OcaOhJN3m5g8=; b=kSk3IkvZmHO2znn+o63JMO6iaiNixeEV3sVotw6VBT+An40gCmAoJWamAyycPIVC5T JhoxWcEZniRBMffkbS20apPnNSh0s0h1Gf49cTbVpOlI1wtg/e+zIAi17AGGC5kn3uj+ USP/MWamODK1MpRKmmEKEiAVw9KAWrqp4sHtfw4h3OyjNB7MwXVHpqY6JfFEFp2QW6q2 J/fGFODS5lnJhuR1nRINqW3gbGQ/jKCINfIkM47y53+ggwWPxz0ptZI0WpCTUfQP+8qE 4gAL1zvOOMASZo+NByO+WuDe+Gv7Hgq3wQ6/uA2vw9elQY1FWq8J+l/YIgg51/okp+t7 2eCw== X-Gm-Message-State: ALoCoQkONY2H2pFSIZSBlJBlHGXTj7ULPrw3lySUVPdnJaBoFbN8P4TMUuOq7H9gxrhpJFSJjqbG 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+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 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. */