tcg: Add consistency checks for op definitions
authorStefan Weil <weil@mail.berlios.de>
Mon, 15 Feb 2010 16:17:21 +0000 (17:17 +0100)
committerBlue Swirl <blauwirbel@gmail.com>
Thu, 18 Feb 2010 19:08:14 +0000 (19:08 +0000)
commit63c7cc39b88ad77433ef67cc9e43704b9b732940
tree8a5d8a3a1de6e7056cf12d847380ae2bb50df3a9
parentd74ad4961ee22b4c9a35bf058b94a24740a520da
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>
tcg/tcg.c
tcg/tcg.h