summaryrefslogtreecommitdiff
path: root/tcg/tcg.h
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2015-08-30 09:21:33 -0700
committerRichard Henderson <rth@twiddle.net>2015-10-07 20:36:46 +1100
commit9aef40ed1f6e2bd794bbb3ba8c8b773e506334c9 (patch)
treee414f13e9c92c9c6fa62a0599c1e996959fe2f3d /tcg/tcg.h
parentb933066ae03d924a92b2616b4a24e7d91cd5b841 (diff)
downloadqemu-9aef40ed1f6e2bd794bbb3ba8c8b773e506334c9.tar.gz
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.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/tcg/tcg.h b/tcg/tcg.h
index 879a665012..c975076b84 100644
--- a/tcg/tcg.h
+++ b/tcg/tcg.h
@@ -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"