mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2024-12-23 16:45:32 +00:00
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:
parent
dbe23a7196
commit
3951997c2a
|
@ -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.
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue