target-arm: Fix CP15 based WFI
authorPaul Brook <paul@codesourcery.com>
Thu, 12 Jul 2012 10:58:35 +0000 (10:58 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 12 Jul 2012 10:58:35 +0000 (10:58 +0000)
commit2bee5105481637f9603bc71ef7cbb81e8da9cd68
tree685ec85c51f630fe48a823c6356b0a95d1b359ca
parent92336855975805d88c7979f53bc05c2d47abab04
target-arm: Fix CP15 based WFI

The coprocessor register rework broke cp15 based WFI instructions.
We incorrectly fall through the normal register write case, which
incorrectly adds a forced block termination.  We've already done
a special version of this (DISAS_WFI), so return immediately.

Signed-off-by: Paul Brook <paul@codesourcery.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target-arm/translate.c