target-arm: Add WFx syndrome function

Adds a utility function for creating a WFx exception syndrome

Backports commit 06fbb2fdf7a7ac468d62c66cfe4537d3c71f7bb9 from qemu
This commit is contained in:
Greg Bellows 2018-02-12 21:33:00 -05:00 committed by Lioncash
parent dbe23a7196
commit 3951997c2a
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -349,6 +349,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.
*/