From mboxrd@z Thu Jan 1 00:00:00 1970 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) From: Greg Bellows Date: Fri, 27 Mar 2015 14:10:45 -0500 Message-Id: <1427483446-31900-7-git-send-email-greg.bellows@linaro.org> In-Reply-To: <1427483446-31900-1-git-send-email-greg.bellows@linaro.org> References: <1427483446-31900-1-git-send-email-greg.bellows@linaro.org> Subject: [Qemu-devel] [[PATCH] 6/7] 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: Greg Bellows Adds a utility function for creating a WFx exception syndrome Signed-off-by: Greg Bellows --- 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. */ -- 1.8.3.2