diff options
author | Claudio Fontana <claudio.fontana@linaro.org> | 2013-12-17 19:42:35 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2013-12-17 20:12:51 +0000 |
commit | e80c502023d332fb60866eb378e715ab3f158b72 (patch) | |
tree | 83c41fc5710b93ee5306adde4df6a7c4f44ff2a0 /target-arm/helper-a64.c | |
parent | afd3fe4ce56e6fb0d0384ddb8e3c4fac01935c37 (diff) | |
download | hqemu-e80c502023d332fb60866eb378e715ab3f158b72.zip hqemu-e80c502023d332fb60866eb378e715ab3f158b72.tar.gz |
target-arm: A64: add support for 1-src CLS insn
this patch adds support for the CLS instruction.
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.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/target-arm/helper-a64.c b/target-arm/helper-a64.c index cccaac6..d3f7067 100644 --- a/target-arm/helper-a64.c +++ b/target-arm/helper-a64.c @@ -50,6 +50,16 @@ uint64_t HELPER(clz64)(uint64_t x) return clz64(x); } +uint64_t HELPER(cls64)(uint64_t x) +{ + return clrsb64(x); +} + +uint32_t HELPER(cls32)(uint32_t x) +{ + return clrsb32(x); +} + uint64_t HELPER(rbit64)(uint64_t x) { /* assign the correct byte position */ |