]> 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>
Tue, 26 Jul 2011 14:30:54 +0000 (14:30 +0000)
commit87f19eb2a5a3ffda5db4ab3bc0c326f2fcd3bcce
treea560ce6bd3c667ed7c0ae8f0678b259a3ab1033e
parent906879a98fa31232f494fece3c5cb3c2baaf8c3c
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