gen-icount.h revision 8d3f9624838fe3f51aa71276ada9759b407a0ad3
/* Helpers for instruction counting code generation. */
static TCGArg *icount_arg;
static int icount_label;
#ifndef VBOX
static inline void gen_icount_start(void)
#else /* VBOX */
DECLINLINE(void) gen_icount_start(void)
#endif /* VBOX */
{
if (!use_icount)
return;
/* FIXME: This generates lousy code. We can't use tcg_new_temp because
count needs to live over the conditional branch. To workaround this
we allow the target to supply a convenient register temporary. */
#ifndef ICOUNT_TEMP
#else
count = ICOUNT_TEMP;
#endif
/* This is a horrid hack to allow fixing up the value later. */
#ifndef ICOUNT_TEMP
#endif
}
{
if (use_icount) {
*icount_arg = num_insns;
}
}
#ifndef VBOX
inline static void gen_io_start(void)
#else
DECLINLINE(void) gen_io_start(void)
#endif
{
}
#ifndef VBOX
static inline void gen_io_end(void)
#else /* VBOX */
DECLINLINE(void) gen_io_end(void)
#endif /* VBOX */
{
}