aboutsummaryrefslogtreecommitdiff
path: root/tcg
diff options
context:
space:
mode:
Diffstat (limited to 'tcg')
-rw-r--r--tcg/tcg.c2
-rw-r--r--tcg/tcg.h2
2 files changed, 1 insertions, 3 deletions
diff --git a/tcg/tcg.c b/tcg/tcg.c
index 8fe3658099..5e84a7f50f 100644
--- a/tcg/tcg.c
+++ b/tcg/tcg.c
@@ -59,7 +59,7 @@
static void patch_reloc(uint8_t *code_ptr, int type,
tcg_target_long value, tcg_target_long addend);
-TCGOpDef tcg_op_defs[] = {
+static TCGOpDef tcg_op_defs[] = {
#define DEF(s, n, copy_size) { #s, 0, 0, n, n, 0, copy_size },
#define DEF2(s, iargs, oargs, cargs, flags) { #s, iargs, oargs, cargs, iargs + oargs + cargs, flags, 0 },
#include "tcg-opc.h"
diff --git a/tcg/tcg.h b/tcg/tcg.h
index 323cc52c1c..03115e25b6 100644
--- a/tcg/tcg.h
+++ b/tcg/tcg.h
@@ -390,8 +390,6 @@ typedef struct TCGTargetOpDef {
const char *args_ct_str[TCG_MAX_OP_ARGS];
} TCGTargetOpDef;
-extern TCGOpDef tcg_op_defs[];
-
void tcg_target_init(TCGContext *s);
void tcg_target_qemu_prologue(TCGContext *s);