From mboxrd@z Thu Jan 1 00:00:00 1970 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) From: Greg Bellows Date: Wed, 22 Apr 2015 12:09:20 -0500 Message-Id: <1429722561-12651-9-git-send-email-greg.bellows@linaro.org> In-Reply-To: <1429722561-12651-1-git-send-email-greg.bellows@linaro.org> References: <1429722561-12651-1-git-send-email-greg.bellows@linaro.org> Subject: [Qemu-devel] [PATCH v2 8/9] target-arm: Add WFx syndrome function List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, peter.maydell@linaro.org, alex.bennee@linaro.org Cc: serge.fdrv@gmail.com, Greg Bellows 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. */ -- 1.8.3.2