mirror of
https://git.proxmox.com/git/qemu
synced 2025-07-09 13:18:26 +00:00
tcg: update README with const and pure helpers
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
parent
4e17eae9f2
commit
a3f5054b1a
11
tcg/README
11
tcg/README
@ -75,10 +75,13 @@ destroyed, but local temporaries and globals are preserved.
|
|||||||
* Helpers:
|
* Helpers:
|
||||||
|
|
||||||
Using the tcg_gen_helper_x_y it is possible to call any function
|
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
|
taking i32, i64 or pointer types. By default, before calling an helper,
|
||||||
globals are stored at their canonical location and it is assumed that
|
all globals are stored at their canonical location and it is assumed
|
||||||
the function can modify them. In the future, function modifiers will
|
that the function can modify them. This can be overriden by the
|
||||||
be allowed to tell that the helper does not read or write some globals.
|
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
|
On some TCG targets (e.g. x86), several calling conventions are
|
||||||
supported.
|
supported.
|
||||||
|
Loading…
Reference in New Issue
Block a user