target-arm: Add WFx instruction trap support
commitb1eced713d9913a5c58ba9daa795f10e4c856c49
authorGreg Bellows <greg.bellows@linaro.org>
Fri, 29 May 2015 10:28:53 +0000 (29 11:28 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 29 May 2015 10:28:53 +0000 (29 11:28 +0100)
tree800476afb0efa0af0039f884b235807b3df3e0c9
parent84549b6dcf9147559ec08b066de673587be6b763
target-arm: Add WFx instruction trap support

Add support for trapping WFI and WFE instructions to the proper EL when
SCTLR/SCR/HCR settings apply.

Signed-off-by: Greg Bellows <greg.bellows@linaro.org>
[PMM: removed unnecessary tweaking of syn_wfx() prototype;
 use raise_exception();
 don't trap on WFE (and add comment explaining why not);
 remove unnecessary ARM_FEATURE checks;
 trap to EL3, not EL1, if in S-EL0 and SCTLR check fires]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
target-arm/op_helper.c