]> Git Repo - qemu.git/commit
target/arm: Don't trap WFI/WFE for M profile
authorPeter Maydell <[email protected]>
Mon, 4 Sep 2017 14:21:51 +0000 (15:21 +0100)
committerPeter Maydell <[email protected]>
Mon, 4 Sep 2017 14:21:51 +0000 (15:21 +0100)
commit0e2845689ebdb4ea7174f96f6797e2d8942bd114
treebf1c4fc57a336e7eafd586184ad8a47c3e946b09
parent03ae85f858fc46495258a5dd4551fff2c34bd495
target/arm: Don't trap WFI/WFE for M profile

M profile cores can never trap on WFI or WFE instructions. Check for
M profile in check_wfx_trap() to ensure this.

The existing code will do the right thing for v7M cores because
the hcr_el2 and scr_el3 registers will be all-zeroes and so we
won't attempt to trap, but when we start setting ARM_FEATURE_V8
for v8M cores the v8A handling of SCTLR.nTWE and .nTWI will not
give the right results.

Signed-off-by: Peter Maydell <[email protected]>
Reviewed-by: Edgar E. Iglesias <[email protected]>
Reviewed-by: Richard Henderson <[email protected]>
Message-id: 1501692241[email protected]
target/arm/op_helper.c
This page took 0.025472 seconds and 4 git commands to generate.