summaryrefslogtreecommitdiff
path: root/tcg/tcg.h
diff options
context:
space:
mode:
authorStefan Weil <weil@mail.berlios.de>2010-02-15 17:17:21 +0100
committerBlue Swirl <blauwirbel@gmail.com>2010-02-18 19:08:14 +0000
commitc68aaa18921b88ba98a9c62cfe45d59f56de7808 (patch)
tree8a5d8a3a1de6e7056cf12d847380ae2bb50df3a9 /tcg/tcg.h
parentdbfe80e1eaf8790f6b3bc42c3a7d146ac8794ed2 (diff)
downloadqemu-c68aaa18921b88ba98a9c62cfe45d59f56de7808.tar.gz
tcg: Add consistency checks for op definitions
When compiled with CONFIG_DEBUG_TCG, this code looks for missing, duplicate and wrong entries in the op definitions. Errors will raise an assertion at program start (all checks are done in the initial phase). The current code contains such errors, at least for i386 guest on i386 host. Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'tcg/tcg.h')
-rw-r--r--tcg/tcg.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tcg/tcg.h b/tcg/tcg.h
index 563eccd390..cf3a50869f 100644
--- a/tcg/tcg.h
+++ b/tcg/tcg.h
@@ -412,6 +412,9 @@ typedef struct TCGOpDef {
uint16_t copy_size;
TCGArgConstraint *args_ct;
int *sorted_args;
+#if defined(CONFIG_DEBUG_TCG)
+ int used;
+#endif
} TCGOpDef;
typedef struct TCGTargetOpDef {