target-arm: Add WFx syndrome function
Adds a utility function for creating a WFx exception syndrome Signed-off-by: Greg Bellows <greg.bellows@linaro.org> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Acked-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Message-id: 1429722561-12651-9-git-send-email-greg.bellows@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
88e8add8b6
commit
06fbb2fdf7
@ -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.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user