diff --git a/tcg/i386/tcg-target.c b/tcg/i386/tcg-target.c
index 972b102..484f476 100644
--- a/tcg/i386/tcg-target.c
+++ b/tcg/i386/tcg-target.c
@@ -262,14 +262,14 @@ static inline void tcg_out_movi(TCGContext *s,
TCGType type,
     }
 }

-static inline void tcg_out_ld(TCGContext *s, TCGType type, int ret,
+static inline void tcg_out_ld(TCGContext *s, int ret,
                               int arg1, tcg_target_long arg2)
 {
     /* movl */
     tcg_out_modrm_offset(s, 0x8b, ret, arg1, arg2);
 }

-static inline void tcg_out_st(TCGContext *s, TCGType type, int arg,
+static inline void tcg_out_st(TCGContext *s, int arg,
                               int arg1, tcg_target_long arg2)
 {
     /* movl */
diff --git a/tcg/tcg.c b/tcg/tcg.c
index 3c0e296..abed1c3 100644
--- a/tcg/tcg.c
+++ b/tcg/tcg.c
@@ -1333,7 +1333,7 @@ static void tcg_reg_free(TCGContext *s, int reg)
         if (!ts->mem_coherent) {
             if (!ts->mem_allocated)
                 temp_allocate_frame(s, temp);
-            tcg_out_st(s, ts->type, reg, ts->mem_reg, ts->mem_offset);
+            tcg_out_st(s, reg, ts->mem_reg, ts->mem_offset);
         }
         ts->val_type = TEMP_VAL_MEM;
         s->reg_to_temp[reg] = -1;
@@ -1389,7 +1389,7 @@ static void temp_save(TCGContext *s, int temp,
TCGRegSet allocated_regs)
             if (!ts->mem_allocated)
                 temp_allocate_frame(s, temp);
             tcg_out_movi(s, ts->type, reg, ts->val);
-            tcg_out_st(s, ts->type, reg, ts->mem_reg, ts->mem_offset);
+            tcg_out_st(s, reg, ts->mem_reg, ts->mem_offset);
             ts->val_type = TEMP_VAL_MEM;
             break;
