]> git.proxmox.com Git - qemu.git/commit
target-arm: Support v6 barriers in linux-user mode
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 21 Jul 2011 07:01:51 +0000 (07:01 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Wed, 27 Jul 2011 09:29:22 +0000 (09:29 +0000)
commit4ec648dd6ed97182d123e0df5bc5012c734aa858
tree9c6f23818ba6f9f4bb28a41dbe738e6310c1998f
parente961d129e1712b64e561ea16fe124933115ee477
target-arm: Support v6 barriers in linux-user mode

ARMv6 implemented various operations as special cases of cp15 accesses
which are true instructions in v7; this includes barriers (DMB, DSB, ISB).
Catch this special case at translate time, so that it works in linux-user
mode (which doesn't provide a functional get_cp15 helper) as well as
system mode.

Includes minor cleanup of the existing cases (single switch statement,
and doing the "OK in user mode?" test explicitly rather than hiding it in
cp15_user_ok()).

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target-arm/translate.c