aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAurelien Jarno <aurelien@aurel32.net>2010-03-05 22:48:03 +0100
committerAurelien Jarno <aurelien@aurel32.net>2010-03-13 11:44:53 +0100
commita3f5054b1a215a140e40a408bc13208196fb3d5d (patch)
tree4e2ae22ecc88175c00c45b0766efb9076c28a6fb
parent4e17eae9f2ee49833698aae2753c5bb041510870 (diff)
tcg: update README with const and pure helpers
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
-rw-r--r--tcg/README11
1 files changed, 7 insertions, 4 deletions
diff --git a/tcg/README b/tcg/README
index f0e21a1c1d..281c1143f3 100644
--- a/tcg/README
+++ b/tcg/README
@@ -75,10 +75,13 @@ destroyed, but local temporaries and globals are preserved.
* Helpers:
Using the tcg_gen_helper_x_y it is possible to call any function
-taking i32, i64 or pointer types. Before calling an helper, all
-globals are stored at their canonical location and it is assumed that
-the function can modify them. In the future, function modifiers will
-be allowed to tell that the helper does not read or write some globals.
+taking i32, i64 or pointer types. By default, before calling an helper,
+all globals are stored at their canonical location and it is assumed
+that the function can modify them. This can be overriden by the
+TCG_CALL_CONST function modifier. By default, the helper is allowed to
+modify the CPU state or raise an exception. This can be overriden by
+the TCG_CALL_PURE function modifier, in which case the call to the
+function is removed if the return value is not used.
On some TCG targets (e.g. x86), several calling conventions are
supported.