target-arm: A64: add support for compare and branch imm
commit60e5338831e35e7b407b1670f5fe936859ea5490
authorAlexander Graf <agraf@suse.de>
Tue, 17 Dec 2013 19:42:33 +0000 (17 19:42 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 17 Dec 2013 19:42:33 +0000 (17 19:42 +0000)
treefeefb4268125c4bc1a2ac4237d553b9317440e83
parentdb0f79589c16fe7f697716f4cadc903a2575ef55
target-arm: A64: add support for compare and branch imm

This patch adds emulation for the compare and branch insns,
CBZ and CBNZ.

Signed-off-by: Alexander Graf <agraf@suse.de>
[claudio: adapted to new decoder,
          compare with immediate 0,
  introduce read_cpu_reg to get the 0 extension on (!sf)]
Signed-off-by: Claudio Fontana <claudio.fontana@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <rth@twiddle.net>
target-arm/translate-a64.c