aboutsummaryrefslogtreecommitdiff
path: root/tcg/tcg.c
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2011-09-29 18:33:21 +0200
committerStefan Weil <weil@mail.berlios.de>2011-10-31 21:52:16 +0100
commit2a24374ab6c27c00dd346f0961a0f05e13672a86 (patch)
treee3abfe0a87e6f87fa4c38632fad4a00bde0d8ab8 /tcg/tcg.c
parentce285b17549e806483f6499d7f3d418168116950 (diff)
downloadqemu-2a24374ab6c27c00dd346f0961a0f05e13672a86.zip
qemu-2a24374ab6c27c00dd346f0961a0f05e13672a86.tar.gz
qemu-2a24374ab6c27c00dd346f0961a0f05e13672a86.tar.bz2
tcg: Make ARRAY_SIZE(tcg_op_defs) globally available
tcg_op_defs was already a global array. The tci disassembler also needs ARRAY_SIZE(tcg_op_defs), so add a new global constant with this value. Signed-off-by: Stefan Weil <sw@weilnetz.de>
Diffstat (limited to 'tcg/tcg.c')
-rw-r--r--tcg/tcg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tcg/tcg.c b/tcg/tcg.c
index 30f3aef..6b27d7b 100644
--- a/tcg/tcg.c
+++ b/tcg/tcg.c
@@ -89,6 +89,7 @@ TCGOpDef tcg_op_defs[] = {
#include "tcg-opc.h"
#undef DEF
};
+const size_t tcg_op_defs_max = ARRAY_SIZE(tcg_op_defs);
static TCGRegSet tcg_target_available_regs[2];
static TCGRegSet tcg_target_call_clobber_regs;