summaryrefslogtreecommitdiffstats
path: root/target-arm/internals.h
diff options
context:
space:
mode:
authorGreg Bellows2015-04-22 19:09:20 +0200
committerPeter Maydell2015-05-18 21:04:04 +0200
commit06fbb2fdf7a7ac468d62c66cfe4537d3c71f7bb9 (patch)
treedf2f8d9e41a135a36f1634a31fdbda988f146aff /target-arm/internals.h
parenttarget-arm: Add EL3 and EL2 TCR checking (diff)
downloadqemu-06fbb2fdf7a7ac468d62c66cfe4537d3c71f7bb9.tar.gz
qemu-06fbb2fdf7a7ac468d62c66cfe4537d3c71f7bb9.tar.xz
qemu-06fbb2fdf7a7ac468d62c66cfe4537d3c71f7bb9.zip
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>
Diffstat (limited to 'target-arm/internals.h')
-rw-r--r--target-arm/internals.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/target-arm/internals.h b/target-arm/internals.h
index 2cc301762c..de0a9c177d 100644
--- a/target-arm/internals.h
+++ b/target-arm/internals.h
@@ -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.
*/