summaryrefslogtreecommitdiff
path: root/target-tilegx/helper.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2015-08-20 21:30:51 -0700
committerRichard Henderson <rth@twiddle.net>2015-09-15 07:45:33 -0700
commit7f41a8d67232bee48ede90ea43f962fdb9e98371 (patch)
tree5a019cc1c9371f4af57566436424429e869512a9 /target-tilegx/helper.c
parent42fedbca8f5b54324ed89be3484d4a3dc9946387 (diff)
downloadqemu-7f41a8d67232bee48ede90ea43f962fdb9e98371.zip
target-tilegx: Handle most bit manipulation instructions
The crc instructions are omitted from this set. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'target-tilegx/helper.c')
-rw-r--r--target-tilegx/helper.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/target-tilegx/helper.c b/target-tilegx/helper.c
index 5b37a8cac3..a01bb8d513 100644
--- a/target-tilegx/helper.c
+++ b/target-tilegx/helper.c
@@ -40,6 +40,16 @@ uint64_t helper_cnttz(uint64_t arg)
return ctz64(arg);
}
+uint64_t helper_pcnt(uint64_t arg)
+{
+ return ctpop64(arg);
+}
+
+uint64_t helper_revbits(uint64_t arg)
+{
+ return revbit64(arg);
+}
+
/*
* Functional Description
* uint64_t a = rf[SrcA];