[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [[PATCH] 6/7] target-arm: Add WFx syndrome function
From: |
Greg Bellows |
Subject: |
[Qemu-devel] [[PATCH] 6/7] target-arm: Add WFx syndrome function |
Date: |
Fri, 27 Mar 2015 14:10:45 -0500 |
Adds a utility function for creating a WFx exception syndrome
Signed-off-by: Greg Bellows <address@hidden>
---
target-arm/internals.h | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/target-arm/internals.h b/target-arm/internals.h
index bb171a7..8dc2e2b 100644
--- a/target-arm/internals.h
+++ b/target-arm/internals.h
@@ -344,6 +344,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.
*/
--
1.8.3.2
- [Qemu-devel] [[PATCH] 0/7] target-arm: EL3 trap support, Greg Bellows, 2015/03/27
- [Qemu-devel] [[PATCH] 1/7] target-arm: Add exception target el infrastructure, Greg Bellows, 2015/03/27
- [Qemu-devel] [[PATCH] 2/7] target-arm: Extend helpers to route exceptions, Greg Bellows, 2015/03/27
- [Qemu-devel] [[PATCH] 3/7] target-arm: Update interrupt handling to use target EL, Greg Bellows, 2015/03/27
- [Qemu-devel] [[PATCH] 4/7] target-arm: Add AArch64 CPTR registers, Greg Bellows, 2015/03/27
- [Qemu-devel] [[PATCH] 5/7] target-arm: Add TTBR regime function and use, Greg Bellows, 2015/03/27
- [Qemu-devel] [[PATCH] 6/7] target-arm: Add WFx syndrome function,
Greg Bellows <=
- [Qemu-devel] [[PATCH] 7/7] target-arm: Add WFx instruction trap support, Greg Bellows, 2015/03/27