gen-icount.h revision 4af48bf7c72ef1e201c64bd475377b5af9d8e8a1
/* Helpers for instruction counting code generation. */
static TCGArg *icount_arg;
static int icount_label;
static inline void gen_icount_start(void)
{
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;
}
}
static inline void gen_io_start(void)
{
}
static inline void gen_io_end(void)
{
}