Commit 06fbb2fd authored by Greg Bellows's avatar Greg Bellows Committed by Peter Maydell
Browse files

target-arm: Add WFx syndrome function



Adds a utility function for creating a WFx exception syndrome

Signed-off-by: default avatarGreg Bellows <greg.bellows@linaro.org>
Reviewed-by: default avatarPeter Maydell <peter.maydell@linaro.org>
Acked-by: default avatarEdgar E. Iglesias <edgar.iglesias@xilinx.com>
Message-id: 1429722561-12651-9-git-send-email-greg.bellows@linaro.org
Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
parent 88e8add8
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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<n>_EL1 and DBGWVR<n>_EL1 registers.
 */