aboutsummaryrefslogtreecommitdiff
path: root/target-tilegx/helper.h
diff options
context:
space:
mode:
authorChen Gang <xili_gchen_5257@hotmail.com>2015-08-21 05:41:51 +0800
committerRichard Henderson <rth@twiddle.net>2015-09-15 07:41:36 -0700
commit5b212be632c8ec1e1fd851055445562ebe705352 (patch)
tree058dcc89d4e0be70c4001e573939a1db653ec7fb /target-tilegx/helper.h
parent9f64170df2c767ea65adee6434968034fb2ff5aa (diff)
downloadqemu-5b212be632c8ec1e1fd851055445562ebe705352.zip
qemu-5b212be632c8ec1e1fd851055445562ebe705352.tar.gz
qemu-5b212be632c8ec1e1fd851055445562ebe705352.tar.bz2
target-tilegx: Add several helpers for instructions translation
The related instructions are exception, cntlz, cnttz, shufflebytes. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com> Message-Id: <BLU436-SMTP83F96FD8422BE49AFDC9DFB9660@phx.gbl> [rth: Remove incorrect implementation of add_saturate.] Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'target-tilegx/helper.h')
-rw-r--r--target-tilegx/helper.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/target-tilegx/helper.h b/target-tilegx/helper.h
new file mode 100644
index 0000000..fd5517e
--- /dev/null
+++ b/target-tilegx/helper.h
@@ -0,0 +1,4 @@
+DEF_HELPER_2(exception, noreturn, env, i32)
+DEF_HELPER_FLAGS_1(cntlz, TCG_CALL_NO_RWG_SE, i64, i64)
+DEF_HELPER_FLAGS_1(cnttz, TCG_CALL_NO_RWG_SE, i64, i64)
+DEF_HELPER_FLAGS_3(shufflebytes, TCG_CALL_NO_RWG_SE, i64, i64, i64, i64)