target-arm/translate.c: Don't pass CPUARMState * to disas_arm_insn()
commitf4df22102a0081ff1bd0df4cb5552411e410eb3e
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 28 Oct 2014 19:24:04 +0000 (28 19:24 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 4 Nov 2014 12:05:11 +0000 (4 12:05 +0000)
tree196ea2f603a5e7fe9f5f2f8bbe4fe89c69ba2c03
parent7dcc1f894d6c50b4f20ce3d2e9c1a90165bc85af
target-arm/translate.c: Don't pass CPUARMState * to disas_arm_insn()

Refactor to avoid passing a CPUARMState * to disas_arm_insn(). To do this
we move the "read insn from memory" code to the callsite and pass the
insn to the function instead.

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