diff options
author | aurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-04-06 12:33:59 +0000 |
---|---|---|
committer | aurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-04-06 12:33:59 +0000 |
commit | b9c18f56585ab146c6a25084bce00e4c52eefcc6 (patch) | |
tree | 20207c890dcc4976359e5e1e833fd48a70a6fc77 /tcg/tcg.h | |
parent | 34d5a9ff634b1cafdd164cfe19e167b55084f6b8 (diff) |
tcg: add a CONST flag to TCG helpers
A const function only reads its arguments and does not use TCG
globals variables. Hence a call to such a function does not
save TCG globals variabes back to their canonical location.
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7008 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'tcg/tcg.h')
-rw-r--r-- | tcg/tcg.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -178,6 +178,10 @@ typedef int TCGv_i64; and cannot raise exceptions. Hence a call to a pure function can be safely suppressed if the return value is not used. */ #define TCG_CALL_PURE 0x0010 +/* A const function only reads its arguments and does not use TCG + globals variables. Hence a call to such a function does not + save TCG globals variabes back to their canonical location. */ +#define TCG_CALL_CONST 0x0020 /* used to align parameters */ #define TCG_CALL_DUMMY_TCGV MAKE_TCGV_I32(-1) |