diff options
author | Stefan Weil <weil@mail.berlios.de> | 2010-02-15 17:17:21 +0100 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-02-18 19:08:14 +0000 |
commit | c68aaa18921b88ba98a9c62cfe45d59f56de7808 (patch) | |
tree | 8a5d8a3a1de6e7056cf12d847380ae2bb50df3a9 /tcg/tcg.h | |
parent | dbfe80e1eaf8790f6b3bc42c3a7d146ac8794ed2 (diff) |
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.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 { |