aboutsummaryrefslogtreecommitdiff
path: root/target-i386/helper.h
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2013-01-21 11:52:26 -0800
committerRichard Henderson <rth@twiddle.net>2013-02-19 23:05:18 -0800
commitf1300734cbca515d30953b2c87e259fa378ea301 (patch)
treee61083d1d2fc5eb5e7fe1eda95973e3f16231c58 /target-i386/helper.h
parentcd7f97cafdd80d6bd4950ccfdcd9acb7850184b2 (diff)
downloadqemu-f1300734cbca515d30953b2c87e259fa378ea301.zip
qemu-f1300734cbca515d30953b2c87e259fa378ea301.tar.gz
qemu-f1300734cbca515d30953b2c87e259fa378ea301.tar.bz2
target-i386: Use clz/ctz for bsf/bsr helpers
And mark the helpers as NO_RWG_SE. Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'target-i386/helper.h')
-rw-r--r--target-i386/helper.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/target-i386/helper.h b/target-i386/helper.h
index 81e0fbd..e1ecdb8 100644
--- a/target-i386/helper.h
+++ b/target-i386/helper.h
@@ -195,9 +195,9 @@ DEF_HELPER_3(frstor, void, env, tl, int)
DEF_HELPER_3(fxsave, void, env, tl, int)
DEF_HELPER_3(fxrstor, void, env, tl, int)
-DEF_HELPER_1(bsf, tl, tl)
-DEF_HELPER_1(bsr, tl, tl)
-DEF_HELPER_2(lzcnt, tl, tl, int)
+DEF_HELPER_FLAGS_1(bsf, TCG_CALL_NO_RWG_SE, tl, tl)
+DEF_HELPER_FLAGS_1(bsr, TCG_CALL_NO_RWG_SE, tl, tl)
+DEF_HELPER_FLAGS_2(lzcnt, TCG_CALL_NO_RWG_SE, tl, tl, int)
DEF_HELPER_FLAGS_2(pdep, TCG_CALL_NO_RWG_SE, tl, tl, tl)
DEF_HELPER_FLAGS_2(pext, TCG_CALL_NO_RWG_SE, tl, tl, tl)