aboutsummaryrefslogtreecommitdiff
path: root/target-arm/helper-a64.c
diff options
context:
space:
mode:
authorClaudio Fontana <claudio.fontana@linaro.org>2013-12-17 19:42:35 +0000
committerPeter Maydell <peter.maydell@linaro.org>2013-12-17 20:12:51 +0000
commit680ead216e666e5cc192fe86adf30563999a5dd8 (patch)
tree1035f957eeb4315cf8f448ed6c429670819fdaf7 /target-arm/helper-a64.c
parent6c1adc919b6a81e008b919c53902b4877ef4d737 (diff)
downloadqemu-680ead216e666e5cc192fe86adf30563999a5dd8.zip
qemu-680ead216e666e5cc192fe86adf30563999a5dd8.tar.gz
qemu-680ead216e666e5cc192fe86adf30563999a5dd8.tar.bz2
target-arm: A64: add support for 1-src data processing and CLZ
This patch adds support for decoding 1-src data processing insns, and the first user, C5.6.40 CLZ (count leading zeroes). 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>
Diffstat (limited to 'target-arm/helper-a64.c')
-rw-r--r--target-arm/helper-a64.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/target-arm/helper-a64.c b/target-arm/helper-a64.c
index abb98c0..e4c5346 100644
--- a/target-arm/helper-a64.c
+++ b/target-arm/helper-a64.c
@@ -44,3 +44,8 @@ int64_t HELPER(sdiv64)(int64_t num, int64_t den)
}
return num / den;
}
+
+uint64_t HELPER(clz64)(uint64_t x)
+{
+ return clz64(x);
+}