target-arm/translate.c: Don't pass CPUARMState around in the decoder
commit7dcc1f894d6c50b4f20ce3d2e9c1a90165bc85af
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 28 Oct 2014 19:24:03 +0000 (28 19:24 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 4 Nov 2014 12:05:06 +0000 (4 12:05 +0000)
tree0ad00dac9de8731d51a3dbcef4fc8879e68d6c23
parentb53d8923a599ef608a73748981a5b4a7355d11e5
target-arm/translate.c: Don't pass CPUARMState around in the decoder

Passing the CPUARMState around in the decoder is a recipe for
bugs where we accidentally generate code that depends on CPU
state which isn't reflected in the TB flags. Stop doing this
and instead use DisasContext as a way to pass around those
bits of CPU state which are known to be safe to use.

This commit simply removes initial "CPUARMState *env" parameters
from various function definitions, and removes the initial "env"
argument from the places where those functions are called.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-id: 1414524244-20316-5-git-send-email-peter.maydell@linaro.org
Reviewed-by: Claudio Fontana <claudio.fontana@huawei.com>
target-arm/translate.c