[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-arm] [PATCH] fix WFI/WFE length in syndrome register
From: |
Stefano Stabellini |
Subject: |
[Qemu-arm] [PATCH] fix WFI/WFE length in syndrome register |
Date: |
Wed, 18 Oct 2017 15:03:02 -0700 (PDT) |
User-agent: |
Alpine 2.10 (DEB 1266 2009-07-14) |
WFI/E are 4 bytes long: set ARM_EL_IL_SHIFT in the syndrome.
Signed-off-by: Stefano Stabellini <address@hidden>
diff --git a/target/arm/internals.h b/target/arm/internals.h
index 1f6efef..cf8c966 100644
--- a/target/arm/internals.h
+++ b/target/arm/internals.h
@@ -398,6 +398,7 @@ static inline uint32_t syn_breakpoint(int same_el)
static inline uint32_t syn_wfx(int cv, int cond, int ti)
{
return (EC_WFX_TRAP << ARM_EL_EC_SHIFT) |
+ (1 << ARM_EL_IL_SHIFT) |
(cv << 24) | (cond << 20) | ti;
}
- [Qemu-arm] [PATCH] fix WFI/WFE length in syndrome register,
Stefano Stabellini <=