diff options
author | Richard Henderson <rth@twiddle.net> | 2015-08-30 09:21:33 -0700 |
---|---|---|
committer | Richard Henderson <rth@twiddle.net> | 2015-10-07 20:36:46 +1100 |
commit | 9aef40ed1f6e2bd794bbb3ba8c8b773e506334c9 (patch) | |
tree | e414f13e9c92c9c6fa62a0599c1e996959fe2f3d /tcg/tcg.h | |
parent | b933066ae03d924a92b2616b4a24e7d91cd5b841 (diff) | |
download | qemu-9aef40ed1f6e2bd794bbb3ba8c8b773e506334c9.zip |
tcg: Allow extra data to be attached to insn_start
With an eye toward having this data replace the gen_opc_* arrays
that each target collects in order to enable restore_state_from_tb.
Reviewed-by: Aurelien Jarno <aurelien@aurel32.net>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'tcg/tcg.h')
-rw-r--r-- | tcg/tcg.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -129,6 +129,12 @@ typedef uint64_t TCGRegSet; # error "Missing unsigned widening multiply" #endif +#ifndef TARGET_INSN_START_EXTRA_WORDS +# define TARGET_INSN_START_WORDS 1 +#else +# define TARGET_INSN_START_WORDS (1 + TARGET_INSN_START_EXTRA_WORDS) +#endif + typedef enum TCGOpcode { #define DEF(name, oargs, iargs, cargs, flags) INDEX_op_ ## name, #include "tcg-opc.h" |