diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2021-03-18 10:21:45 -0600 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2021-06-19 08:51:11 -0700 |
commit | 90163900e3c71ed2743cafd27542d941c4e25991 (patch) | |
tree | d2b244283c9407039e7d58dcae3b0fbe356ba170 /tcg/tcg-internal.h | |
parent | 7319d83a735004ba24b439491a9d7727dac2ddbe (diff) |
tcg: Add tcg_call_flags
We're going to change how to look up the call flags from a TCGop,
so extract it as a helper.
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'tcg/tcg-internal.h')
-rw-r--r-- | tcg/tcg-internal.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tcg/tcg-internal.h b/tcg/tcg-internal.h index 181f86507a..0796407c13 100644 --- a/tcg/tcg-internal.h +++ b/tcg/tcg-internal.h @@ -37,4 +37,9 @@ bool tcg_region_alloc(TCGContext *s); void tcg_region_initial_alloc(TCGContext *s); void tcg_region_prologue_set(TCGContext *s); +static inline unsigned tcg_call_flags(TCGOp *op) +{ + return op->args[TCGOP_CALLO(op) + TCGOP_CALLI(op) + 1]; +} + #endif /* TCG_INTERNAL_H */ |