Skip to content

Commit

Permalink
tcg/tci: Remove tci_disas
Browse files Browse the repository at this point in the history
This function is unused.  It's not even the disassembler,
which is print_insn_tci, located in disas/tci.c.

Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
  • Loading branch information
rth7680 committed Mar 17, 2021
1 parent 92bc4fa commit 65f1b6c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
10 changes: 0 additions & 10 deletions tcg/tci/tcg-target.c.inc
Expand Up @@ -253,16 +253,6 @@ static bool patch_reloc(tcg_insn_unit *code_ptr, int type,
return true;
}

#if defined(CONFIG_DEBUG_TCG_INTERPRETER)
/* Show current bytecode. Used by tcg interpreter. */
void tci_disas(uint8_t opc)
{
const TCGOpDef *def = &tcg_op_defs[opc];
fprintf(stderr, "TCG %s %u, %u, %u\n",
def->name, def->nb_oargs, def->nb_iargs, def->nb_cargs);
}
#endif

/* Write value (native size). */
static void tcg_out_i(TCGContext *s, tcg_target_ulong v)
{
Expand Down
2 changes: 0 additions & 2 deletions tcg/tci/tcg-target.h
Expand Up @@ -163,8 +163,6 @@ typedef enum {
#define TCG_TARGET_CALL_STACK_OFFSET 0
#define TCG_TARGET_STACK_ALIGN 16

void tci_disas(uint8_t opc);

#define HAVE_TCG_QEMU_TB_EXEC

/* We could notice __i386__ or __s390x__ and reduce the barriers depending
Expand Down

0 comments on commit 65f1b6c

Please sign in to comment.